fix missing parameters at mount.
remount / ro before reboot to leave a clean rootfs.
case "${1}" in
start)
- boot_mesg "Autoresize /var partition to use the whole drive ..."
-
- # Ensure that / is writeable
- mount
+ boot_mesg "Mounting root file system in read/write mode ..."
+ mount -o remount,rw / > /dev/null
+ evaluate_retval
+ boot_mesg "Autoresize /var partition to use the whole drive ..."
# Detect device
ROOT=`mount | grep -m1 " / " | cut -d" " -f1`;
DRV=${ROOT::`expr length $ROOT`-1}
# Erase symlink, it should run only once
rm -f /etc/rc.d/rcsysinit.d/S26fsresize
+ sync
exit 0;
;;
case "${1}" in
start)
- # Ensure that / is writeable
- mount -o remount,rw /
+ boot_mesg "Mounting root file system in read/write mode ..."
+ mount -o remount,rw / > /dev/null
+ evaluate_retval
# Detect device
ROOT=`mount | grep -m1 " / " | cut -d" " -f1`;
rm -f /etc/rc.d/rcsysinit.d/S25partresize
boot_mesg "Rebooting ..."
+ sync
+ mount -o remount,ro / > /dev/null
reboot -f
;;