mountfs.lua 392 B

1234567891011121314151617181920212223
  1. -- moountfs
  2. local task={
  3. desc="to remount root file system in read-write mode",
  4. start={
  5. cmd={
  6. "mount --options remount,rw /",
  7. "mount --all --test-opts no_netdev",
  8. },
  9. },
  10. stop={
  11. cmd={
  12. "losetup -D",
  13. "umount --all --detach-loop --read-only --types notmpfs,nosysfs,nodevtmpfs,noproc,nodevpts >/dev/null",
  14. "mount --options remount,ro /",
  15. "sync",
  16. },
  17. },
  18. }
  19. return task