2013-06-05 13:17:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-09-04 04:56:29 +00:00
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
2014-03-29 03:28:22 +00:00
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
|
|
|
|
2014-06-09 08:53:38 +00:00
|
|
|
RET=$(/bin/select-boot-kernel-initrd)
|
|
|
|
KERNEL_VERSION=`echo ${RET%:*} | sed 's/vmlinuz-//g'`
|
|
|
|
RAMDISK=/boot/${RET#*:}
|
2013-06-05 13:17:59 +00:00
|
|
|
|
2013-10-17 11:11:30 +00:00
|
|
|
dracut --force --add "network" $RAMDISK $KERNEL_VERSION
|