FS#2929 - additional kernel install pre_install function
Attached to Project:
Arch Linux
Opened by Aaron Griffin (phrakture) - Thursday, 07 July 2005, 19:57 GMT
Last edited by Aaron Griffin (phrakture) - Friday, 08 December 2006, 23:16 GMT
Opened by Aaron Griffin (phrakture) - Thursday, 07 July 2005, 19:57 GMT
Last edited by Aaron Griffin (phrakture) - Friday, 08 December 2006, 23:16 GMT
|
Details
Every now and then, someone will attempt a kernel
install/upgrade on a unmounted boot partition. This
succeeds, of course, but does not boot right. It's happened
to me once.
I'd like to suggest a preinstall check for a mounted boot partition... it should be as simple as grepping fstab for "/boot", to make sure it's a seperate partition, and checking mtab to see if it's mounted. If fstab does not contain a "/boot" partition, simply output a message "no /boot partition detected, assuming /boot is correct" or something... and if it's in fstab but not mtab, either mount it, or fail with "/boot partition not mounted" |
This task depends upon
cat /etc/fstab | grep /boot > /dev/null
if [ $? -eq 0 ]; then
cat /etc/mtab | grep /boot > /dev/null
if [ $? -ne 0 ]; then
echo "/boot is not mounted!!"
exit
fi
fi
work?
Assigning to tpowa until he feels this is closed.