initramfs: mount external partitions readonly

Fixes: SYS#521
This commit is contained in:
Henning Heinold 2014-08-26 16:28:02 +02:00 committed by Holger Hans Peter Freyther
parent 497be38b34
commit 1b5a3eb3af
1 changed files with 7 additions and 0 deletions

View File

@ -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 ; "