initramfs: mount external partitions readonly
Fixes: SYS#521
This commit is contained in:
parent
497be38b34
commit
1b5a3eb3af
|
@ -0,0 +1,7 @@
|
|||
# we sed the udev automounter so it mounts all partions on the stick/sdcard readonly
|
||||
|
||||
change_udev_automounter_ro() {
|
||||
sed -i -e 's/\-t auto/\-t auto \-o ro/' ${IMAGE_ROOTFS}/etc/udev/scripts/mount.sh
|
||||
}
|
||||
|
||||
ROOTFS_POSTPROCESS_COMMAND += "change_udev_automounter_ro ; "
|
Loading…
Reference in New Issue