HomeFreeBSD

contrib/dracut: 90: mount essential datasets under root

Description

contrib/dracut: 90: mount essential datasets under root

This partly mirrors what the i-t script does (though that mounts all
children, recursively) ‒ /etc, /usr, /lib*, and /bin are all essential,
if present, to successfully invoke the real init, which will then mount
everything else it might need in the right order

The following extreme-case set-up boots w/o issues now:

/               zoot            zfs  rw,relatime,xattr,noacl
├─/etc          zoot/etc        zfs  rw,relatime,xattr,noacl
├─/usr          zoot/usr        zfs  rw,relatime,xattr,noacl
│ └─/usr/local  zoot/usr/local  zfs  rw,relatime,xattr,noacl
├─/var          zoot/var        zfs  rw,relatime,xattr,noacl
│ ├─/var/lib    zoot/var/lib    zfs  rw,relatime,xattr,noacl
│ ├─/var/log    zoot/var/log    zfs  rw,relatime,xattr,posixacl
│ ├─/var/cache  zoot/var/cache  zfs  rw,relatime,xattr,noacl
│ └─/var/tmp    zoot/var/tmp    zfs  rw,relatime,xattr,noacl
├─/home         zoot/home       zfs  rw,relatime,xattr,noacl
│ └─/home/nab   zoot/home/nab   zfs  rw,relatime,xattr,noacl
├─/boot         zoot/boot       zfs  rw,relatime,xattr,noacl
├─/root         zoot/home/root  zfs  rw,relatime,xattr,noacl
├─/opt          zoot/opt        zfs  rw,relatime,xattr,noacl
└─/srv          zoot/srv        zfs  rw,relatime,xattr,noacl

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11898

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on Apr 13 2021, 8:41 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 16 2021, 10:24 PM
Parents
rG51bc60e58288: contrib/dracut: 90: generator: only log to kmsg if debug set on cmdline
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGd8ced6613d0f: contrib/dracut: 90: mount essential datasets under root (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).Apr 16 2021, 10:24 PM