Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conf_sync not working after upgrade from 3.x to 4.0.8 #285

Open
vadonka opened this issue Aug 31, 2022 · 2 comments
Open

conf_sync not working after upgrade from 3.x to 4.0.8 #285

vadonka opened this issue Aug 31, 2022 · 2 comments

Comments

@vadonka
Copy link

vadonka commented Aug 31, 2022

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.

@vadonka
Copy link
Author

vadonka commented Aug 31, 2022

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?

@msmith626
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants