Browse Source

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.
master
Warren Togami 16 years ago
parent
commit
13d5225fc8
  1. 6
      modules.d/99base/init

6
modules.d/99base/init

@ -227,6 +227,12 @@ else @@ -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 "

Loading…
Cancel
Save