On 09.03.25 17:45, Marco d'Itri wrote:
Huh. It's been sufficiently long ago that I first did this; IIRC I simply used a bind mount instead of investigating what replaced the symlink. If this has since been fixed (by chance?), so much the better.On Mar 09, Matthias Urlichs<matth...@urlichs.de> wrote:My "build me a Debian image" script has been doing that for two years now, simply by moving /var/lib/dpkg to /usr/state/dpkg and bind-mounting it back onto /var/lib/dpkg (symlinking won't work).How so? My /var/lib/dpkg has been a symlink for a very long time.
Granted that some pieces are missing, most notably /boot (which really should be populated from /usr (and /etc) instead of being directly installed to), but that's irrelevant when your usecase is booting containers, and fixable by reinstalling the kernel packages.Seehttps://www.linux.it/~md/text/factoryreset-asg2024.pdf .
Ah. Thanks. -- -- regards -- -- Matthias Urlichs
OpenPGP_signature.asc
Description: OpenPGP digital signature