initrd_layer_test 208 B

12345678910111213
  1. #!/bin/sh
  2. mkdir /pup_rw
  3. mkdir /pup_ro1
  4. mkdir /pup_new
  5. mount -o ro,rbind / /pup_ro1
  6. mount -t aufs -o br:/pup_rw:/pup_ro1 aufs /pup_new
  7. echo '#!/bin/sh' > /pup_new/etc/rc.d/rc.sysinit
  8. #exec chroot /pup_new