Package: initramfs-tools
Severity: wishlist

Currently /usr/share/initramfs-tools/scripts/local checks for the presence of the root device node after local-top has been run but before local-premount has been run an panics if it can't find it:

# Get the root filesystem type
if [ ! -e "${ROOT}" ]; then
panic "ALERT! ${ROOT} does not exist. Dropping to a shell!"
fi
eval $(fstype < ${ROOT})

This seems a bit counter-intuitive as one would expect a dir called "premount" to be run before doing the rootfs checks, so maybe the test could be moved down to be just below local-premount instead of below local-top invocation?

If rootfstype might be needed in premount, how about setting FSTYPE to undefined instead of a panic and delaying the panic to after local-premount?

Re,
David


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to