summaryrefslogtreecommitdiffstats
path: root/testModule
diff options
context:
space:
mode:
authorJonathan Bauer2015-05-06 18:18:44 +0200
committerJonathan Bauer2015-05-06 18:18:44 +0200
commitf0629e71b6cd2d557826e1dd7d5d16266c6aada2 (patch)
treed5a0f114b4db814d011b0fb45b3af8438c6bd45c /testModule
parentcurrent state: udev disk detection still not done! (diff)
downloadsystemd-init-f0629e71b6cd2d557826e1dd7d5d16266c6aada2.tar.gz
systemd-init-f0629e71b6cd2d557826e1dd7d5d16266c6aada2.tar.xz
systemd-init-f0629e71b6cd2d557826e1dd7d5d16266c6aada2.zip
oops
Diffstat (limited to 'testModule')
-rwxr-xr-xtestModule/hooks/cmdline.sh22
-rwxr-xr-xtestModule/hooks/mount.sh3
-rwxr-xr-xtestModule/hooks/nbd-cmdline.sh5
-rwxr-xr-xtestModule/hooks/pre-mount.sh9
-rwxr-xr-xtestModule/hooks/pre-udev.sh44
5 files changed, 0 insertions, 83 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
diff --git a/testModule/hooks/mount.sh b/testModule/hooks/mount.sh
deleted file mode 100755
index e893642d..00000000
--- a/testModule/hooks/mount.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-mount /dev/root $NEWROOT
diff --git a/testModule/hooks/nbd-cmdline.sh b/testModule/hooks/nbd-cmdline.sh
deleted file mode 100755
index 6464646f..00000000
--- a/testModule/hooks/nbd-cmdline.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-
-rootok=1
-root=block:/dev/root
-
diff --git a/testModule/hooks/pre-mount.sh b/testModule/hooks/pre-mount.sh
deleted file mode 100755
index b22cdc35..00000000
--- a/testModule/hooks/pre-mount.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/bash
-
-while ! /sbin/setup-qcow2; do
- sleep 0.5
-done
-
-while ! /sbin/setup-nbdroot; do
- sleep 0.5
-done
diff --git a/testModule/hooks/pre-udev.sh b/testModule/hooks/pre-udev.sh
deleted file mode 100755
index 578169e9..00000000
--- a/testModule/hooks/pre-udev.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/bash
-
-# include dracut-lib.sh to use 'warn'
-command -v warn >/dev/null || . /lib/dracut-lib.sh
-
-SETUP_SCRIPT="/sbin/setup-qcow2"
-NBDROOT_SCRIPT="/sbin/setup-nbdroot"
-NBD_MOD_PATH="/usr/lib/modules/current/extra/nbd.ko"
-DNBD3_MOD_PATH="/usr/lib/modules/current/extra/dnbd3.ko"
-
-# sanity checks
-if [ ! -e "${SETUP_SCRIPT}" ]; then
- warn "No such file of directory: ${SETUP_SCRIPT}"
- emergency_shell -n "Error in $0"
- return 1
-fi
-if [ ! -e "${NBD_MOD_PATH}" ]; then
- warn "No such file of directory: ${NBD_MOD_PATH}"
- emergency_shell -n "Error in $0"
- return 1
-fi
-if [ ! -e "${DNBD3_MOD_PATH}" ]; then
- warn "No such file of directory: ${DNBD3_MOD_PATH}"
- emergency_shell -n "Error in $0"
- return 1
-fi
-
-# load the kernel modules for dnbd3 and nbd
-if ! insmod /usr/lib/modules/current/extra/dnbd3.ko; then
- warn "Failed to load DNBD3 kernel module..."
- emergency_shell -n "Error in $0"
- return 1
-fi
-
-if ! insmod /usr/lib/modules/current/extra/nbd.ko; then
- warn "Failed to load NBD kernel module..."
- emergency_shell -n "Error in $0"
- return 1
-fi
-
-# now let's "install" the setup script in the initqueue
-#/sbin/initqueue --settled --unique "${SETUP_SCRIPT}"
-#/sbin/initqueue --settled --unique "${NBDROOT_SCRIPT}"
-#/sbin/initqueue --settled --unique "/sbin/retry-nbdroot"