diff options
| author | Jonathan Bauer | 2015-05-06 18:18:44 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2015-05-06 18:18:44 +0200 |
| commit | f0629e71b6cd2d557826e1dd7d5d16266c6aada2 (patch) | |
| tree | d5a0f114b4db814d011b0fb45b3af8438c6bd45c /testModule/hooks/cmdline.sh | |
| parent | current state: udev disk detection still not done! (diff) | |
| download | systemd-init-f0629e71b6cd2d557826e1dd7d5d16266c6aada2.tar.gz systemd-init-f0629e71b6cd2d557826e1dd7d5d16266c6aada2.tar.xz systemd-init-f0629e71b6cd2d557826e1dd7d5d16266c6aada2.zip | |
oops
Diffstat (limited to 'testModule/hooks/cmdline.sh')
| -rwxr-xr-x | testModule/hooks/cmdline.sh | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/testModule/hooks/cmdline.sh b/testModule/hooks/cmdline.sh deleted file mode 100755 index b1f06ea6..00000000 --- a/testModule/hooks/cmdline.sh +++ /dev/null @@ -1,22 +0,0 @@ -echo 1 > /proc/sys/kernel/sysrq - -# fakes the cmdline to fix the ip parsing when using -# syslinux's IPAPPEND 1 mask -[ -d /fake ] || mkdir /fake - -# need to be a tmpfs for the hack to work -mount -t tmpfs tmpfs /fake - -# append ':hiwi:eth0:none' to the 'ip=' parameter we got -# from syslinux's IPAPPEND 1 -sed 's/\(ip=\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}:\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}:\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}:\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}\)/\1:hiwi:eno1:none/' /proc/cmdline > /fake/cmdline - -# 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:eth0:none' /proc/cmdline; then - command -v warn >/dev/null || . /lib/dracut-lib.sh - warn 'Haxing cmdline did not work :( sad pandaz...' -fi |
