From: Warren Togami Date: Tue, 4 Aug 2009 21:15:39 +0000 (-0400) Subject: Temporary hack to provide ifcfg files to OS in a way that might work with existing... X-Git-Tag: 0.8~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13d5225fc89baa8c9f747c37be44f8805587bc07;p=thirdparty%2Fdracut.git Temporary hack to provide ifcfg files to OS in a way that might work with existing initscripts. I am not happy about this. It shouldn't be the job of dracut to do this. The initscripts should deal with the plain /dev/.initramfs/ifcfg/ directory accordingly. Doing this for now because notting insists upon it. We need to clean this up after we network option passing working. --- diff --git a/modules.d/99base/init b/modules.d/99base/init index ab75e2573..613c9f26e 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -227,6 +227,12 @@ else cp -a /tmp/ifcfg/ /dev/.initramfs/ >/dev/null 2>&1 fi +# XXX: Temporary hack until we have a better plan +if [ -d /dev/.initramfs/ifcfg ]; then + mkdir -p /dev/.initramfs/etc/sysconfig/ + mv /dev/.initramfs/ifcfg/ /dev/.initramfs/etc/sysconfig/network-scripts/ +fi + exec switch_root "$NEWROOT" "$INIT" $initargs || { # davej doesn't like initrd bugs echo "Something went very badly wrong in the initrd. Please "