diff options
| author | Jonathan Bauer | 2015-05-27 16:32:57 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2015-05-27 16:32:57 +0200 |
| commit | 0abace2bbec9e17a3630c463e4e3c329c967334b (patch) | |
| tree | 986a9bebd62c2dd596c85bf44bbec68d00cccd13 /testModule/library.sh | |
| parent | removed hacked systemd rpms and grub2.conf (diff) | |
| download | systemd-init-0abace2bbec9e17a3630c463e4e3c329c967334b.tar.gz systemd-init-0abace2bbec9e17a3630c463e4e3c329c967334b.tar.xz systemd-init-0abace2bbec9e17a3630c463e4e3c329c967334b.zip | |
restructuring & bit of documentation ;)
dracut module now in 'dnbd3-qcow2-rootfs'. ALLLLL dracut related stuff goes in here!
Diffstat (limited to 'testModule/library.sh')
| -rw-r--r-- | testModule/library.sh | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/testModule/library.sh b/testModule/library.sh deleted file mode 100644 index d3f97aff..00000000 --- a/testModule/library.sh +++ /dev/null @@ -1,38 +0,0 @@ -cat /proc/cmdline >/tmp/cmdline - -replace_cmd() { - sed --regexp-extended "s/$1=[^ ]*/$1=$2/g" /tmp/cmdline -i -} - -getcmdline() { - local _line - local _i - local CMDLINE_ETC_D - local CMDLINE_ETC - unset _line - - if [ -e /etc/cmdline ]; then - while read -r _line; do - CMDLINE_ETC="$CMDLINE_ETC $_line"; - done </etc/cmdline; - fi - for _i in /etc/cmdline.d/*.conf; do - [ -e "$_i" ] || continue - while read -r _line; do - CMDLINE_ETC_D="$CMDLINE_ETC_D $_line"; - done <"$_i"; - done - ## NOTE: We modify this to be able to alter kernel command line arguments - ## at runtime. - if [ -e /tmp/cmdline ]; then - read -r CMDLINE </tmp/cmdline; - CMDLINE="$CMDLINE_ETC_D $CMDLINE_ETC $CMDLINE" - else - ## - if [ -e /proc/cmdline ]; then - read -r CMDLINE </proc/cmdline; - CMDLINE="$CMDLINE_ETC_D $CMDLINE_ETC $CMDLINE" - fi - fi - printf "%s" "$CMDLINE" -} |
