openhab / openhabian

openHABian - empowering the smart home, for Raspberry Pi and Debian systems
https://community.openhab.org/t/13379
ISC License
822 stars 251 forks source link

`fstab` entry overwritten with wrong PARTUUID #1574

Closed mstormi closed 3 years ago

mstormi commented 3 years ago

The nightly run sdrsync script seems to copy the boot SD's fstab over to the mirror card, causing that failing to boot. It is calling the mirror_SD() routine from backup.bash with "diff" as parameter.

See also https://community.openhab.org/t/cannot-open-access-to-console-the-root-account-is-locked/118646/8

mstormi commented 3 years ago

On a sidenote, currently executed command is

rsync --one-file-system --exclude '/srv/*' --delete-excluded -avKRh $mountpoint

Why exclude /srv ? EDIT: answering myself: /srv/* are loopback mounts but will be physically synced if not excluded