diff options
| -rwxr-xr-x | remote/rootfs/rootfs-stage31/data/init | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/remote/rootfs/rootfs-stage31/data/init b/remote/rootfs/rootfs-stage31/data/init index 534a195a..e5251025 100755 --- a/remote/rootfs/rootfs-stage31/data/init +++ b/remote/rootfs/rootfs-stage31/data/init @@ -78,14 +78,16 @@ fi mkdir -p /dev/shm/union /dev/shm/uniontmp /rorootfs mount -n -t tmpfs none /dev/shm/uniontmp -# mount stage32 per NFS if activated -# or per squashfs else +echo "Setup networking..." +/bin/setup_network + +# mount rootfs if [ -n "$NFS" ]; then - echo "Setup networking..." - /bin/setup_network + # mount stage32 per NFS if activated echo "Mounting stage 3.2 as NFS..." mount -t nfs -o ro,async,nolock ${NFSSERVER}:${NFSPATH} /rorootfs || { echo "Problem mounting NFS-Directory from ${NFSSERVER}:${NFSPATH}."; drop_shell; } else + # or per squashfs else echo "Mounting stage 3.2 as SquashFS..." mount -t squashfs /mnt/*.sqfs /rorootfs || { echo "Problem mounting Squashfs."; drop_shell; } fi |
