diff options
-rw-r--r-- | packages/nslu2-binary-only/unslung-rootfs-2.3r25/create-ramdisks.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/create-ramdisks.patch b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/create-ramdisks.patch index 7fe65afc68..5783dae078 100644 --- a/packages/nslu2-binary-only/unslung-rootfs-2.3r25/create-ramdisks.patch +++ b/packages/nslu2-binary-only/unslung-rootfs-2.3r25/create-ramdisks.patch @@ -8,14 +8,14 @@ + +/bin/echo "Creating ramfs for /dev:" +/bin/mount -t ramfs ramfs /mnt/tmpmnt -+/bin/cp -r /dev/* /mnt/tmpmnt/ ++/bin/cp -rp /dev/* /mnt/tmpmnt/ +/bin/mkdir -p /dev.state +/bin/mount -o bind /dev /dev.state +/bin/mount -o bind /mnt/tmpmnt /dev +/bin/umount /mnt/tmpmnt +/bin/echo "Creating ramfs for /var:" +/bin/mount -t ramfs ramfs /mnt/tmpmnt -o maxsize=256 -+/bin/cp -r /var/* /mnt/tmpmnt/ ++/bin/cp -rp /var/* /mnt/tmpmnt/ +/bin/mkdir -p /var.state +/bin/mount -o bind /var /var.state +/bin/mount -o bind /mnt/tmpmnt /var |