diff options
| author | Michal Suchanek <hramrach@centrum.cz> | 2010-06-04 09:23:39 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:53:26 +0100 |
| commit | 5e1fc3b98b6346a087772c68f21fd56c7bf6aa42 (patch) | |
| tree | 429c8cbd90431250f52d0a4d7ffe257a770ab9e3 /scripts/live | |
| parent | 5885d2275909d2b8ceaa6509f7cd06911d61a503 (diff) | |
| download | live-boot-5e1fc3b98b6346a087772c68f21fd56c7bf6aa42.tar.gz live-boot-5e1fc3b98b6346a087772c68f21fd56c7bf6aa42.zip | |
Fixing http boot:
- set NETBOOT as the other netboot methods do.
- do not fall through to NFS if HTTP fails.
Diffstat (limited to 'scripts/live')
| -rwxr-xr-x | scripts/live | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/live b/scripts/live index afe0f4b..fd4a5e4 100755 --- a/scripts/live +++ b/scripts/live @@ -682,8 +682,6 @@ copy_live_to () do_netmount () { - rc=1 - modprobe -q af_packet # For DHCP udevadm trigger @@ -761,10 +759,12 @@ do_netmount () NFSROOT=${ROOTSERVER}:${ROOTPATH} fi - if ( [ -n "${FETCH}" ] || [ -n "${HTTPFS}" ] || [ -n "${FTPFS}" ] ) && do_httpmount + rc=1 + + if ( [ -n "${FETCH}" ] || [ -n "${HTTPFS}" ] || [ -n "${FTPFS}" ] ) then - rc=0 - return ${rc} + do_httpmount + return $? fi if [ "${NFSROOT#*:}" = "${NFSROOT}" ] && [ "$NETBOOT" != "cifs" ] @@ -846,7 +846,10 @@ do_httpmount () if [ ${rc} != 0 ] then - umount "${mountpoint}" + umount "${mountpoint}" + elif [ "${webfile}" != "FETCH" ] ; then + NETBOOT="${webfile}" + export NETBOOT fi return ${rc} |
