> couple of days ago i asked about how the save-config worked on a usb stick
> (when using install-on-usb). Today i've noticed that the usb stick is mounted
> rw, so save-config just writes the .tar.bz2 to the stick.
It mounts the stick RW unless the stick is physically write protected.
> it could be better if we partition the usb stick in two, one partition remains
> ro (the main one, as a cdrom) and the other to save the config, only mounted
> when is needed. yes, no, bruce? :)
I believe a stick with a write protect switch is a requirement.
Otherwise there is no security on the media.
If that's the case, I don't see a need for more than one partition.
Then I think the save-config script should remount the stick RW before
saving (-oremount), and then remount it as RO when it's done.
The user can manually change the switch on the stick to RW before
running save-config, and switch the stick back to RO when done
(just like a floppy).
I've never actually tried this, and I'm hoping there isn't a problem
changing the switch while the USB is plugged in.
- BS
|