From 5f7e3ccff0f8aa561e3b9e3e2b0962062f627ee6 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Wed, 5 Jul 2006 01:05:26 +0000 Subject: Hack to run-init to handle UnionFS properly as root fs on diskless clients. See UnionfsBenutzen for explanation ... git-svn-id: http://svn.openslx.org/svn/openslx/ld4@271 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/initrd-stuff/bin/run-init | Bin 9588 -> 10832 bytes initrd/initrd-stuff/init | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'initrd') diff --git a/initrd/initrd-stuff/bin/run-init b/initrd/initrd-stuff/bin/run-init index 722a7219..556caeb6 100755 Binary files a/initrd/initrd-stuff/bin/run-init and b/initrd/initrd-stuff/bin/run-init differ diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init index c3461a1f..0530a8cd 100755 --- a/initrd/initrd-stuff/init +++ b/initrd/initrd-stuff/init @@ -355,9 +355,10 @@ fi # setup of client root filesystem dependent on the availability of UnionFS if [ -n "${UNIONFS}" ] ; then echo "Using UnionFS for rw access" - mkdir -p ${RWDIR}/union ${RWDIR}/uniontmp + mkdir -p ${RWDIR}/union ${RWDIR}/uniontmp /rorootfs mount -n -t tmpfs none ${RWDIR}/uniontmp - mount -n -t unionfs -o dirs=${RWDIR}/uniontmp=rw:/mnt=${NFSRO}ro \ + mount --move /mnt /rorootfs + mount -n -t unionfs -o dirs=${RWDIR}/uniontmp=rw:/rorootfs=${NFSRO}ro \ none /mnt mkdir -p /mnt/uniontmp mount -n --move ${RWDIR}/uniontmp /mnt/uniontmp -- cgit v1.2.3-55-g7522