diff options
author | maximilian attems <maks@debian.org> | 2009-02-23 15:10:21 +0100 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2009-02-23 15:10:21 +0100 |
commit | b458a270b7335b9a8b137ec0ac69b21a33bf58c3 (patch) | |
tree | c877255725833bb65797f5948a5567958d4637d9 /init | |
parent | 21ccf36d1ff1f39cbefce34de7287cf99307c93c (diff) | |
download | initramfs-tools-b458a270b7335b9a8b137ec0ac69b21a33bf58c3.tar.gz initramfs-tools-b458a270b7335b9a8b137ec0ac69b21a33bf58c3.zip |
init: export ip root param for configure_networking()
while at it cleanup the variable name that came due to legacy
naming nfsopts in a very early initramfs-tools release.
"The local-top/iscsi initramfs integration script uses the
configure_networking function, which depends on the IPOPTS environmental
variable set by the init script. However, this variable is not
available, because it's not exported from init, and local-top/iscsi is
not sourced but executed. Thus static IP configuration on the kernel
command line is not communicated to the script."
(closes: #516746)
Reported-by: Ferenc Wagner <wferi@niif.hu>
Diffstat (limited to 'init')
-rwxr-xr-x | init | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -35,6 +35,7 @@ export ROOT= export ROOTDELAY= export ROOTFLAGS= export ROOTFSTYPE= +export IP= export break= export init=/sbin/init export quiet=n @@ -117,7 +118,7 @@ for x in $(cat /proc/cmdline); do NFSROOT="${x#nfsroot=}" ;; ip=*) - IPOPTS="${x#ip=}" + IP="${x#ip=}" ;; boot=*) BOOT=${x#boot=} @@ -242,6 +243,7 @@ unset ROOTFLAGS unset ROOTFSTYPE unset ROOTDELAY unset ROOT +unset IP unset blacklist unset break unset noresume |