Evgeny Vereshchagin
eddca3c9c2
dracut-systemd/dracut-cmdline-ask: fix dracut --kernel-cmdline=rd.cmdline=ask
...
How to reproduce:
host# dracut --kernel-cmdline='rd.cmdline=ask' initramfs.img
host# qemu-system-x86_64 -initrd initramfs.img ... -append root=/dev/sda1 ...
...
qemu-host# journalctl -b | grep dracut-cmdline-ask
...
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: Installed new job dracut-cmdline-ask.service/start as 42
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: ConditionKernelCommandLine=rd.cmdline=ask failed.
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: Starting requested but condition failed. Not starting unit.
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: Job dracut-cmdline-ask.service/start finished, result=done
...
Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
9 years ago
Harald Hoyer
6bc2096cf5
kernel-modules: join instmods and install all usb/storage
9 years ago
Harald Hoyer
b4dd861a0b
kernel-modules: add usb-storage
...
To save the rdsosreport.txt to a USB stick, the usb-storage module is
needed
9 years ago
Harald Hoyer
f4f8fb5c10
network: if rd.neednet=0 we don't need a bootdev
...
otherwise dracut would wait for the bootdev interface to appear and be
setup
9 years ago
Harald Hoyer
9542f2fee4
network: add mtu to list of variables to store in override
9 years ago
Harald Hoyer
24a78b2697
Fixed vlan, bonding, bridging, team logic
...
Call ifup for the slaves and assemble afterwards.
9 years ago
Pekka Wallendahl
28058a2e37
multipath: fix majmin_to_mpath_dev()
...
* Multipath device names only start with the mpath-prefix if the option
use_userfriendly_names is set true in /etc/multipath.conf and if user
has not set any aliases in the said file. Thus the for-loop should go
through all files in /dev/mapper/, not just ones starting with 'mpath'
* Bash is perfectly capable to extend `/dev/mapper/*` notation without a
need to pass it to an external ls
* Changed the function to use a local variable $_dev instead of the
global $dev, which seemed to be the original intention as the local
_dev was defined but not used
9 years ago
Harald Hoyer
efbc47b8e4
network/net-lib.sh: correctly set mac address for ip=...:<mtu>:<mac>
...
if ip=...:<mtu>:<mac> was specified, macadress was not set
9 years ago
Harald Hoyer
e93ff1cf9a
fcoe: no need to copy lldpad state
...
/dev/shm should be available later on by the normal switch root bind mount.
9 years ago
Harald Hoyer
07149fe6be
nbd: add missing generator
9 years ago
Alexander Tsoy
c41df7e1db
base/dracut-lib.sh:dev_unit_name() guard against $dev beginning with "-"
...
crypt/parse-crypt.sh generate initqueue job which always call
dev_unit_name() with an argument beginning with "-". This results
in the following error:
dracut-initqueue[307]: + systemd-escape -p -cfb4aa43-2f02-4c6b-a313-60ea99288087
dracut-initqueue[307]: systemd-escape: invalid option -- 'c'
9 years ago
Harald Hoyer
b070c1d360
nbd: add systemd generator and use nbd export names instead of port numbers
...
Add a systemd generator for root=nbd:.. so that systemd has a correct
sysroot.mount unit.
Use export names instead of port numbers, because port number based
exports are deprecated and were removed.
9 years ago
Harald Hoyer
df95b1003c
network: fix carrier detection
...
rename iface_has_link() to iface_has_carrier() to clarify usage
Only assign static "wildcard interface" settings, if the interface has a
carrier.
If the interface name was specified with a name, do not do carrier
checking for static configurations.
9 years ago
Harald Hoyer
efd3a6db74
livenet/module-setup.sh: only include systemd generator if systemd included
9 years ago
Harald Hoyer
4bcd41389c
systemd: include machine-info
9 years ago
Harald Hoyer
8d26b5661e
kernel-modules: include all HID driver in hostonly mode
...
If a kernel is updated in the undocked state and later on docked, some
keyboard modules can be missing.
Thus include all HID drivers.
9 years ago
Harald Hoyer
ce9a398771
dmsquash-live/dmsquash-live-root.sh: SQUASHED can be set earlier
...
8b5ee88ff6
removed the check for SQUASHED,
assuming, that the if clause above was the only place, where SQUASHED is
set.
This patch reverts to the old logic, because SQUASHED can be set
earlier.
9 years ago
Harald Hoyer
54e09dfb72
shutdown: guard against read-only /run
...
remount the switch rooted /run writeable again.
9 years ago
Harald Hoyer
88ba9372be
livenet/livenet-generator.sh: mode 0755
9 years ago
Harald Hoyer
5d8d0ac814
dmraid/61-dmraid-imsm.rules: add nowatch option for udev
...
udev rereads partitions, if watch is set for disks
9 years ago
Harald Hoyer
6ed1d9fd07
dmsquash-live/dmsquash-live-root.sh: fixed typo
9 years ago
Harald Hoyer
eb242ada05
dmraid/61-dmraid-imsm.rules: remove double ","
9 years ago
Harald Hoyer
4916bf1a58
lvm: silence errors from "lvm dumpconfig"
...
if the config option does not exist, we ignore the error anyway
9 years ago
Harald Hoyer
87e90d7f4a
For rd.hostonly=0 remove all initqueue/finished files also
...
This helps booting systems with changed configuration
9 years ago
Harald Hoyer
1a2290ea79
Revert "systemd: if kdbus is available, include the kernel module"
...
This reverts commit 90ff5ad67e
.
There will be no kdbus anymore :-/
9 years ago
Frederick Grose
8b5ee88ff6
dmsquash-live-root: Avoid an overlay for persistent, uncompressed, read-write live installations.
...
Persistent, uncompressed live installations can avoid overlays with a new rd.live.overlay=none flag.
Non-persistent rd.live.ram boots can also take advantage of persistent home.img filesystems.
9 years ago
Antony Messerli
a455ad1c27
livenet: add livenet-generator
...
Resolves issues where systemd attempts to boot a live URL as an NFS mount.
This patch uses systemd's generator arg[2] to generate an early sysroot.mount
that preempts systemd-fstab-generator.
See https://bugzilla.redhat.com/show_bug.cgi?id=1280103
9 years ago
Harald Hoyer
2da041d672
Check for systemd before installing systemd specific files
...
https://bugzilla.redhat.com/show_bug.cgi?id=1282010
9 years ago
Harald Hoyer
602dce9ff2
iscsi/parse-iscsiroot.sh: reload udev rules
...
in the DHCP case udev is already running, so reload the rules before
continuing.
9 years ago
Zhiguo Deng
7527b90c88
Check rd.zfcp= format in dracut hook:cmdline process stage
...
When using rd.zfcp= parameter in generic.prm file, wrong format
parameters will prevent the zfcp driver to add the correct SCSI
disk. dracut should die when a wrong rd.zfcp= parameter supplied.
Signed-off-by: Zhiguo Deng <bjzgdeng@linux.vnet.ibm.com>
9 years ago
dyoung@redhat.com
6870007674
Revert "Let user specify the action after fail"
...
This reverts commit 9d787df196
action_on_fail is useless thus remove the commits for it one by one.
Signed-off-by: Dave Young <dyoung@redhat.com>
9 years ago
dyoung@redhat.com
d6dfde7830
Revert "99fs-lib/fs-lib.sh: Let user specify the action after fail for fsck"
...
This reverts commit 679fa7ed3c
.
action_on_fail is useless thus remove the commits for it one by one.
Signed-off-by: Dave Young <dyoung@redhat.com>
9 years ago
dyoung@redhat.com
946722e465
Revert "dracut-emergency.service: do not start for "action_on_fail=continue""
...
This reverts commit b78e6ac2c3
.
action_on_fail is useless thus remove the commits for it one by one.
Signed-off-by: Dave Young <dyoung@redhat.com>
9 years ago
dyoung@redhat.com
a95a727fdc
Revert "systemd/emergency.service: do not run for action_on_fail=continue"
...
This reverts commit dcae873414
.
action_on_fail is useless thus remove the commits for it one by one.
Signed-off-by: Dave Young <dyoung@redhat.com>
9 years ago
dyoung@redhat.com
927d1e28c9
Revert "rename kernel command line param action_on_fail to rd.action_on_fail"
...
This reverts commit 391d605790
.
action_on_fail is useless thus remove the commits for it one by one.
Signed-off-by: Dave Young <dyoung@redhat.com>
9 years ago
dyoung@redhat.com
74c9fb947b
Revert "Change the implementation of action_on_fail"
...
This reverts commit d2765b5175
.
action_on_fail is useless thus remove the commits for it one by one.
Signed-off-by: Dave Young <dyoung@redhat.com>
9 years ago
Mei Liu
dcc2a4344b
Add awk and getopt as dependencies of znetconf
...
znetconf command is part of s390utils-base package. It depends on
awk and getopt.
This patch is used to fix the following error:
dracut:/#
znetconf -c
/usr/sbin/znetconf: line 70: awk: command not found
/usr/sbin/znetconf: line 1138: getopt: command not found
Signed-off-by: Mei Liu <liumbj@linux.vnet.ibm.com>
9 years ago
Harald Hoyer
ed92ecaa3c
iscsi: only systemctl try-restart iscsid, if systemd is used
9 years ago
Harald Hoyer
98e9db2755
iscsi/iscsiroot.sh: put variables in quotes
...
best practice
9 years ago
Harald Hoyer
35a666d02a
dracut-systemd/rootfs-generator.sh: s/RequiresOverridable/Requires
...
RequiresOverridable will be deprecated
9 years ago
Harald Hoyer
5b43377d74
network/ifup.sh: skip empty nameserver values
...
(cherry picked from commit e658251173
)
9 years ago
Harald Hoyer
ecdee70c48
base/dracut-lib.sh:getargs() don't return 1 for empty values
...
getargs() is only used with real values and not booleans.
So, return the values only.
(cherry picked from commit d1f7f2ac04
)
9 years ago
Harald Hoyer
a49c1f049b
network:wait_for_ifup() handle "NO-CARRIER" output
...
if "NO-CARRIER" is one of the flags, we surely have no link yet.
(cherry picked from commit f059985b14
)
9 years ago
Harald Hoyer
79cb273dc0
iscsi/parse-iscsiroot.sh: correct handling if netroot isn't set
...
corrects bfe65f913a
(cherry picked from commit 7fd112f20e
)
9 years ago
Harald Hoyer
b5363e834a
iscsi/iscsiroot.sh: handle iscsi_firmware in online and timeout queue
...
The return code of iscsi_firmware is broken, so set the marker
unconditionally.
(cherry picked from commit fd3eddf069
)
9 years ago
Harald Hoyer
19b0065cac
network/netroot.sh: better handling of $netroot and dhcp
...
if $netroot is emtpy, get it from cmdline
check cmdline directly for root=dhcp(6) and netroot=dhcp(6)
(cherry picked from commit 17cee31b11
)
9 years ago
Harald Hoyer
df087c45d8
iscsi/iscsiroot.sh: use all_ifaces_setup()
...
we want the route and gateway setup
(cherry picked from commit 7cddfbbadb
)
9 years ago
Harald Hoyer
5d90ba4fca
network: add all_ifaces_setup()
...
all_ifaces_up() is true, if all interfaces are up.
all_ifaces_setup() is true, if all interfaces are up and the gateways
and nameserver are setup.
(cherry picked from commit 63e75dc4cd
)
9 years ago
Harald Hoyer
e847a78bb6
network/dhclient-script.sh: fix RENEW
...
Remove check, if interface is already up. It is for RENEW.
new_prefix is apparently new_subnet_mask
(cherry picked from commit 52845b168d
)
9 years ago
Harald Hoyer
73833796b4
network: move "ip=ibft" handling to network module
...
(cherry picked from commit b334c83e4a
)
9 years ago