Modification to apt script.

Suggest new features here
Post Reply
User avatar
MW0MWZ
Site Admin
Posts: 1505
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: Modification to apt script.

Post by MW0MWZ »

Yes, but it would close with more like

Code: Select all

sync
sync
sync
mount -o remount,ro /
mount -o remount,ro /boot
The reason I don'd do this, is because some times there is more stuff going on in the background and the disk can get held in RW state, plus these commands are used in scripts, like the pistar-update script, so i would need to account for it there to.

However, its not all bad news, there is an automatic process that puts the disk back in RO mode if you leave it - think of these more as a safety net, so that when you "apt update" because muscle memory, and you didnt remember to make the disk RW, it magically happens saving you from shooting your feet off (that might have happened to me countless times).
Andy

73 de MW0MWZ
http://pistar.uk
Post Reply