[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#772416: initrd: support booting from chroot



You asked what would be needed to get this patch merged, so here's a
list:

1. It will need to be rebased on the current version of
   initramfs-tools (0.125).  I think the mount changes now belong at
   the bottom of local_mount_root, not in local_bottom, as
   local_bottom runs after we attempt to mount /usr.

2. The filesystem type check and error message are completely unrelated
   to this feature and shouldn't be part of the patch.

3. I'm not sure the parameter name 'chroot' is quite right.  We always
   change root (actually pivot_root) when handing over to the 'real'
   init system.  I think I would prefer to make the subdirectory part
   of the 'root' parameter, maybe like:

       root=/dev/mapper/my-var,/lib/chroot/foo

4. Any new or modified parameters need to be documented in the
   existing manual pages.

It also struck me that chroot installations aren't necessarily part of
the usual root partition, and indeed might be on a different type of
filesystem.  So it would be useful to add a configuration variable that
specifies additional filesystem types to be supported.  mkinitramfs
would add both the module and the fsck command for each type.  But that
would be a separate feature and patch.

Ben.

-- 
Ben Hutchings
I haven't lost my mind; it's backed up on tape somewhere.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: