File: parse-systemd-import.sh

package info (click to toggle)
dracut 110-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,356 kB
  • sloc: sh: 24,895; ansic: 5,236; makefile: 346; perl: 186; python: 48; javascript: 19
file content (10 lines) | stat: -rwxr-xr-x 277 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

command -v getarg > /dev/null || . /lib/dracut-lib.sh

if getarg rd.systemd.pull= > /dev/null; then
    echo "rd.neednet=1" > /etc/cmdline.d/01-systemd-import.conf
    if ! getarg "ip="; then
        echo "ip=dhcp" >> /etc/cmdline.d/01-systemd-import.conf
    fi
fi