quantum/esos

conf_sync not working after upgrade from 3.x to 4.0.8

Opened this issue · 2 comments

Hi!

After i upgrade with the "brave" method the conf_sync.sh drop this error:
mount: mounting /dev/sdb3 on /mnt/conf failed: Invalid argument
I look into it and the reason is this:
mount /mnt/conf also gives this error
fstab looks like this:
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs size=128m,mode=1777 0 0
tmpfs /tmp tmpfs mode=1777,nosuid,noatime 0 0
LABEL=ESOS_BOOT /boot vfat sync,noauto 1 1
LABEL=esos_root /mnt/root ext2 sync,noauto 1 1
LABEL=esos_conf /mnt/conf ext2 sync,noauto 1 1
LABEL=esos_logs /mnt/logs ext2 sync,noauto 1 1

If i issue this: mount LABEL=esos_conf /mnt/conf
it works
mount /mnt/conf does not

`Modifying usb_sync.sh like this is a workaround:

Mount, sync, and unmount

if cat /proc/mounts | awk '{print $2}' | grep -q ${CONF_MNT}; then
if ! grep -q esos_persist /proc/cmdline; then
logger -s -t $(basename ${0}) -p "local4.warn"
"It appears '${CONF_MNT}' is already mounted! Continuing anyway..."
fi
else
mount LABEL=esos_conf ${CONF_MNT} || exit 1
fi`

Any idea why this happening?
It did occured all on my esos install.

Also mounting /mnt/root or /mnt/logs gives the same error.

Okay, find the issue. The filesystem upgraded to ext4 but in the fstab it still in ext2. Changed to ext4 on there and the issue is gone.
I wonder a fresh install fstab how is looks like?

Fresh install of ESOS will have it as 'ext4'. Thanks for the information, I'll update the docs.