2013-06-05 13:17:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
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
|