]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Temporary hack to provide ifcfg files to OS in a way that might work with existing...
authorWarren Togami <wtogami@redhat.com>
Tue, 4 Aug 2009 21:15:39 +0000 (17:15 -0400)
committerWarren Togami <wtogami@redhat.com>
Tue, 4 Aug 2009 21:15:39 +0000 (17:15 -0400)
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.

modules.d/99base/init

index ab75e2573b195e293ccaf31f7eacdf71efcd00fd..613c9f26eefb71925df71e0226fc8e377a403a1e 100755 (executable)
@@ -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 "