diff options
Diffstat (limited to 'testModule/hooks/cmdline')
| -rwxr-xr-x | testModule/hooks/cmdline/enable-sysrq.sh | 2 | ||||
| -rwxr-xr-x | testModule/hooks/cmdline/expand-kcl-ip.sh | 36 | ||||
| -rwxr-xr-x | testModule/hooks/cmdline/mark-root-device.sh | 9 |
3 files changed, 0 insertions, 47 deletions
diff --git a/testModule/hooks/cmdline/enable-sysrq.sh b/testModule/hooks/cmdline/enable-sysrq.sh deleted file mode 100755 index f779aa7a..00000000 --- a/testModule/hooks/cmdline/enable-sysrq.sh +++ /dev/null @@ -1,2 +0,0 @@ -# enables magic sysrq keys -echo 1 > /proc/sys/kernel/sysrq diff --git a/testModule/hooks/cmdline/expand-kcl-ip.sh b/testModule/hooks/cmdline/expand-kcl-ip.sh deleted file mode 100755 index 9f617b09..00000000 --- a/testModule/hooks/cmdline/expand-kcl-ip.sh +++ /dev/null @@ -1,36 +0,0 @@ -command -v warn >/dev/null || . /lib/dracut-lib.sh - -# fakes the cmdline to fix the ip parsing in darcut's net-lib.sh -[ -d /fake ] || mkdir /fake - -# need to be a tmpfs for the hack to work -mount -t tmpfs tmpfs /fake - -for parameter in $(getargs ip=); do - local temp="$parameter:" - set -- - while [ -n "$temp" ]; do - set -- "$@" "${temp%%:*}" - temp=${temp#*:} - done - - [ -n "$1" ] && ip=$1 - [ -n "$2" ] && server_ip=$2 - [ -n "$3" ] && gateway_ip=$3 - [ -n "$4" ] && net_mask=$4 - - warn "PXE given net configuration: ip: $ip server_ip: $server_ip gateway_ip: $gateway_ip net_mask: $net_mask" - local final_dracut_ip_config="$ip::$gateway_ip:$net_mask:hiwi-test-28:eno1:none" - warn "Final dracut ip config: $final_dracut_ip_config" - sed --regexp-extended "s/ip=[^ ]*/ip=$final_dracut_ip_config/g" /proc/cmdline > /fake/cmdline -done - - -# bind mount it. Can we trust mount return codes here? -# # if so, we should check what we get in $? -mount -o bind /fake/cmdline /proc/cmdline - -# check if it worked -if ! grep 'hiwi-test-28:eno1:none' /proc/cmdline; then - warn 'Haxing cmdline did not work :( sad pandaz...' -fi diff --git a/testModule/hooks/cmdline/mark-root-device.sh b/testModule/hooks/cmdline/mark-root-device.sh deleted file mode 100755 index b7282521..00000000 --- a/testModule/hooks/cmdline/mark-root-device.sh +++ /dev/null @@ -1,9 +0,0 @@ -# set rootok and root as dracut expects them to be set by -# the module preparing the root filesystem. -# -# Once the root filesystem is mounted per dnbd3 and -# exported as qcow2 per nbd, /dev/root will be a symlink -# to /dev/nbd0 as this is then our rootfs-device -rootok=1 -root=block:/dev/root - |
