Hello Amos, On Thu, Apr 10, 2025 at 01:05:06AM +1200, Amos Jeffries wrote: > > On Tue, Apr 08, 2025 at 09:11:54PM +0200, João Pedro Malhado wrote: > > The patch instals packages with priority important after those with priority > > required, and before everything else. This seems a bit arbitrary, but I > > suppose > > there is no way to tell dpkg (or apt?) a good order to install packages. > > > > AFAICT, instead of adding a separate lookup for the important packages, just > changing the regex used to find required ones should be okay: > > Change this line: > > dpkg-deb --field $i Priority | grep ^required > /dev/null \ > > To this: > > dpkg-deb --field $i Priority | grep "^(required|important)" > /dev/null \ >
One may do that, but in that case you would be installing required and important packages together, not required packages before important packages. I don't know if it makes a difference. Did it work for you? How does the debian installer decide/control the order of package installation during base-system install? Best regards, João