• Re: Debian on /usr (Re: TC decision on ownership of top-level filesyste

    From Marco d'Itri@21:1/5 to Matthias Urlichs on Sun Mar 9 17:50:01 2025
    On Mar 09, Matthias Urlichs <matthias@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.
    See https://www.linux.it/~md/text/factoryreset-asg2024.pdf .

    --
    ciao,
    Marco

    -----BEGIN PGP SIGNATURE-----

    iHUEABYIAB0WIQQnKUXNg20437dCfobLPsM64d7XgQUCZ83FsgAKCRDLPsM64d7X gdwqAQCDu5YLohA3E8mcuthFXeyhHLDfM7JLfz2gB0mSxe7A4gD/dSt0sbX6bTls uyuS8eExa8aAYyEqukz0FkKbJdcmIQE=
    =XW65
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Matthias Urlichs@21:1/5 to All on Tue Mar 11 04:10:01 2025
    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------kmUK92jycIP9lyRZ1Sbyam71
    Content-Type: multipart/alternative;
    boundary="------------Eqzo12cj30Ly02nEgk3RF0u9"

    --------------Eqzo12cj30Ly02nEgk3RF0u9
    Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64

    T24gMDkuMDMuMjUgMTc6NDUsIE1hcmNvIGQnSXRyaSB3cm90ZToNCj4gT24gTWFyIDA5LCBN YXR0aGlhcyBVcmxpY2hzPG1hdHRoaWFzQHVybGljaHMuZGU+IHdyb3RlOg0KPg0KPj4gTXkg ImJ1aWxkIG1lIGEgRGViaWFuIGltYWdlIiBzY3JpcHQgaGFzIGJlZW4gZG9pbmcgdGhhdCBm b3IgdHdvIH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gcmVnYXJkcw0KLS0g DQotLSBNYXR0aGlhcyBVcmxpY2hzDQoNCg==
    --------------Eqzo12cj30Ly02nEgk3RF0u9
    Content-Type: text/html; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <div class="moz-cite-prefix">On 09.03.25 17:45, Marco d'Itri wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:Z83FsomwjaqVZmNA@bongo.bofh.it">
    <pre wrap="" class="moz-quote-pre">On Mar 09, Matthias Urlichs <a class="moz-txt-link-rfc2396E" href="mailto:matthias@urlichs.de">&lt;matthias@urlichs.de&gt;</a> wrote:

    </pre>
    <blockquote type="cite">
    <pre wrap="" class="moz-quote-pre">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).
    </pre>
    </blockquote>
    <pre wrap="" class="moz-quote-pre">How so? My /var/lib/dpkg has been a symlink for a very long time.
    </pre>
    </blockquote>
    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.<span style="white-space: pre-wrap">
    </span>
    <blockquote type="cite" cite="mid:Z83FsomwjaqVZmNA@bongo.bofh.it">
    <blockquote type="cite">
    <pre wrap="" class="moz-quote-pre">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.
    </pre>
    </blockquote>
    <pre wrap="" class="moz-quote-pre">See <a class="moz-txt-link-freetext" href="https://www.linux.it/~md/text/factoryreset-asg2024.pdf">https://www.linux.it/~md/text/factoryreset-asg2024.pdf</a> .
    </pre>
    </blockquote>
    <p>Ah. Thanks.<br>
    </p>
    <pre class="moz-signature" cols="72">--
    -- regards
    --
    -- Matthias Urlichs</pre>
    </body>
    </html>

    --------------Eqzo12cj30Ly02nEgk3RF0u9--

    --------------kmUK92jycIP9lyRZ1Sbyam71--

    -----BEGIN PGP SIGNATURE-----

    wsF5BAABCAAjFiEEr9eXgvO67AILKKGfcs+OXiW0wpMFAmfPpSUFAwAAAAAACgkQcs+OXiW0wpMh 0hAAih8bmVZ+PlNUeBeDRTiY8SBCk/AS5I0E710MUxahzT4RaIojQPKe2Ki+XENhX6g90EMgWTx8 zAjRffEcL/+Oq9QdGvlJ3a6NagJ0KpTWye+qb/ptrYD7AARgT8ptP6Po25ZdM6y15ckwyv3ELUYF zE7y1ZQb+sYJQKZOLwE+/7SI/hbvY83MlT/lmeJgiXGiC8xErwDmglCIhaQCeIQmnActMqYSBAll nRfYjFyjP7W3xebBvUGaG9P/AjN5uB95ZuwiEncHPRVIvKgGBQO4psagH9jDbjGJl00dCnpy/nT6 IORNpNvvoYKdYbitpdoHMXyBiJ2Sv/m7T1M6Nr0RtP+eXbCXJ+G1xtjshwX0s8Ss4fm7QUJrmJlt i6vuyIClRn/kW3yIHQGRORxhvAXnvBIbvo9jDDI09GQUYPb+D97HkhS1QFljkmk0g57oybOxgH61 lG0PPInttNuwYIhdmDTXABOFkPq2hD37XJ7GMbPF5Y6j6CzkrCUIt5jRXn1Rp+8wxyj05Os43g0M qhgiRv3mOY6vi2yLPOjhaVDzBxXsm0mE1Ov4ujnkQzateVTyofslvAwwZpDTyKCVov4q4Gjl2krM fD2l27313joVqhn+cWCn5FdrIYrZfWKo73m6DFGg57E8OVzil5VPbiDcWqyGtJnRFvkxDrCMyHDQ qWo=
    =Oq+0
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05