Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- export PATH=/bin:/sbin:/usr/bin:/usr/sbin
- echo "PLD PXE"
- /bin/mount -v -n -t tmpfs -o mode=0755,size=1m none /initrd
- #/bin/mount -v -n -t proc none /proc
- mkdir /initrd/ro
- mkdir /initrd/rw
- mkdir /initrd/pld
- /bin/mount -v -n -t tmpfs -o mode=0755,size=8m none /initrd/rw
- # /bin/mount -n -t squashfs /dev/root /initrd/ro
- /bin/mount -v -n -o bind / /initrd/ro
- #/bin/mount -v -n -t unionfs none /initrd/pld -o dirs=/initrd/rw=rw:/initrd/ro=ro
- /bin/mount -v -n -t aufs none -o br=/initrd/rw=rw:/initrd/ro=ro /initrd/pld
- # wywalenie tego linuxrc
- /bin/rm -v /initrd/pld/linuxrc*
- #/bin/mount -v -n -t tmpfs -o mode=0755,size=1m none /initrd/pld/initrd
- cd /initrd/pld
- #/bin/mount -v -n -t tmpfs -o mode=0755,size=1m none initrd
- #/bin/umount -v -n /proc
- pivot_root . initrd
- # /sbin/pivot_root /initrd/pld /initrd/pld/initrd
- echo "Uruchamiamy init"
- exec /usr/sbin/chroot . /sbin/init $@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement