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
Task Type Support Request
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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

Closed by  Tobias Powalowski (tpowa)
Saturday, 09 December 2006, 15:08 GMT
Reason for closing:  Fixed
Comment by Tobias Powalowski (tpowa) - Monday, 27 March 2006, 15:49 GMT
feel free to add it to .install file that it gets into next kernel release :)
Comment by James Rosten (yankees26) - Sunday, 15 October 2006, 13:58 GMT
Would something like:
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?
Comment by Aaron Griffin (phrakture) - Friday, 08 December 2006, 23:16 GMT
Implemented something in CVS now. I did little testing, but it should be OK to run with.

Assigning to tpowa until he feels this is closed.

Loading...