diff options
author | Matthias Hentges <oe@hentges.net> | 2006-04-04 12:07:29 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-04-04 12:07:29 +0000 |
commit | e21f2e5093a027058a685f09a4b9d0151bb4dafd (patch) | |
tree | 40635582f4d8f687e198f825a2e3be2318aba3a4 /packages/altboot/files/altboot-menu/Advanced | |
parent | be327e49437c5d3c5ac8f3f47f0274975670e434 (diff) |
altboot: - Allow a basic reconfiguration of non-flash based installations:
- Move /home from flash into the image
- Remove SD / CF / /home ipkg dests
- Move ipkg package data from RAM into the image
- All of the above is _optional_
- Be a little bit less verbose.
- Yet _again_ change the way we detect wheter we are called by the kernel or the user...this is driving me nuts.
Diffstat (limited to 'packages/altboot/files/altboot-menu/Advanced')
-rw-r--r-- | packages/altboot/files/altboot-menu/Advanced/40-bootNFS | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/packages/altboot/files/altboot-menu/Advanced/40-bootNFS b/packages/altboot/files/altboot-menu/Advanced/40-bootNFS index baa426218b..e01af7faad 100644 --- a/packages/altboot/files/altboot-menu/Advanced/40-bootNFS +++ b/packages/altboot/files/altboot-menu/Advanced/40-bootNFS @@ -20,11 +20,11 @@ run_module() { init_rootfs # Needed for NFS - /etc/init.d/portmap start >/dev/tty1 2>&1 || die "/etc/init.d/portmap start failed!" + /etc/init.d/portmap start >/dev/null 2>&1 || die "/etc/init.d/portmap start failed!" # For some reason NFS mounts hang if /e/i/networking is not run. # For the time beeing I'm too lazy to investigate ;) - /etc/init.d/networking start || die "/etc/init.d/networking start failed!" + /etc/init.d/networking start >/dev/null 2>&1 || die "/etc/init.d/networking start failed!" sleep 2 @@ -126,6 +126,15 @@ run_module() { mkdir -p /media/nfsroot || die "mkdir -p /media/nfsroot failed!" echo -n "Mounting NFS root..." + + if ( mount | grep -q "/media/nfsroot" ) + then + echo "/media/nfsroot already used, tying to umount..." + umount /media/image + losetup -d /dev/loop0 + umount /media/nfsroot || die "umount failed!" + fi + mount -t nfs "$selection" /media/nfsroot && echo ok || die "mount -t nfs "$selection" /media/nfsroot failed!" # Use configured resolv.conf in the pivoted rootfs |