- #!/bin/sh
- PREREQ=''
- prereqs() {
- echo "$PREREQ"
- }
- case $1 in
- prereqs)
- prereqs
- exit 0
- ;;
- esac
- . /usr/share/initramfs-tools/hook-functions
- manual_add_modules aufs
- manual_add_modules tmpfs
- copy_exec /bin/chmod /bin
- -----------------------------------
- #!/bin/sh
- PREREQ=''
- prereqs() {
- echo "$PREREQ"
- }
- case $1 in
- prereqs)
- prereqs
- exit 0
- ;;
- esac
- if grep single /proc/cmdline >/dev/null; then
- exit 0
- fi
- ro_mount_point="${rootmnt%/}.ro"
- rw_mount_point="${rootmnt%/}.rw"
- mkdir "${ro_mount_point}" "${rw_mount_point}"
- mount --move "${rootmnt}" "${ro_mount_point}"
- mount -t tmpfs -o "noatime,nodiratime" root.rw "${rw_mount_point}"
- mount -t aufs -o "dirs=${rw_mount_point}=rw:${ro_mount_point}=ro,noatime,nodiratime" root.union "${rootmnt}"
- chmod 755 "${rootmnt}"
- mkdir "${rootmnt}/ro" "${rootmnt}/rw"
- mount --move "${ro_mount_point}" "${rootmnt}/ro"
- mount --move "${rw_mount_point}" "${rootmnt}/rw"
- rm -f "${rootmnt}/etc/rcS.d"/S[0-9][0-9]checkroot.sh
- -----------------------------------
- mega.nz/file/xE82mZ4B#V9kbyO82-VFm834gC62-M9w1_R_WdxZR3_EHIMCCd3Y
Untitled
Posted by Anonymous on Fri 25th Dec 2020 02:11
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.