Harald Hoyer
794b2d2c75
Use dracut-install to install kernel modules
...
dracut-install can now install kernel modules and their corresponding
firmware files.
9 years ago
Harald Hoyer
ff8f702689
dracut-init.sh: mark error messages with FAILED
9 years ago
Harald Hoyer
98fd06934c
lsinitrd.sh: fixed unpack and skipcpio search
9 years ago
Harald Hoyer
374ef3ed2b
dracut-init.sh: Add file argument to sed's
...
fixup for 06a1d07690
9 years ago
Harald Hoyer
f7f5b82b43
dracut.sh: call dracut-install with "-f" in FIPS mode
...
in fips mode, dracut-install was called with "-H" instead of "-f" in
FIPS mode
missed conversion of commit 26cd262a6a
9 years ago
Harald Hoyer
c395993eaf
Merge pull request #122 from scop/fixes
...
Various shell script improvements
9 years ago
Ville Skyttä
06a1d07690
dracut-init.sh: Simplify udev rule grepping
9 years ago
Ville Skyttä
bcabe0fe25
Clean up some bashisms from /bin/sh scripts
9 years ago
Ville Skyttä
dec3dfa4b3
nfs/module-setup.sh: Use colon instead of dot for chown user/group separator
9 years ago
Ville Skyttä
9430ae301e
Do not use deprecated egrep/fgrep
9 years ago
Harald Hoyer
97bbba6938
lsinitrd: add "--unpack" to lsinitrd
...
also "--unpackearly" and "--verbose"
9 years ago
Harald Hoyer
472928ec3d
dracut.conf.5.asc: fix bold
9 years ago
Harald Hoyer
b127294def
dracut-install: catch ldd message "cannot execute binary file"
9 years ago
Harald Hoyer
556ff7c76a
dracut-systemd/dracut-pre-pivot.sh: Break at switch_root only for bare rd.break
...
similar to commit ddfea6b54c
Previously, any rd.break=breakpoint would cause a break at the
given breakpoint and also at switch_root.
9 years ago
Harald Hoyer
cb6d49bc9d
Merge branch 'master' of github.com:haraldh/dracut
9 years ago
Harald Hoyer
caf12d6717
network/dhclient-script.sh: add classless-static-routes support
...
https://bugzilla.redhat.com/show_bug.cgi?id=1260955
(cherry picked from commit a48ea27deb
)
9 years ago
Harald Hoyer
fe6455a6e8
documentation: "--hostonly-i18n" "--no-hostonly-i18n" "i18n_install_all"
9 years ago
Harald Hoyer
4d3e54e01a
Merge pull request #116 from evverx/fix-ask-cmdline-hostonly=0
...
base/init.sh: don't remove 99-cmdline-ask on 'hostonly' cleanup
9 years ago
Harald Hoyer
6a97d2fc89
Merge pull request #115 from evverx/fix-dracut-cmdline-ask-service
...
dracut-systemd/dracut-cmdline-ask: fix dracut --kernel-cmdline=rd.cmdline=ask
9 years ago
Evgeny Vereshchagin
4ab6447c2a
base/init.sh: don't remove 99-cmdline-ask on 'hostonly' cleanup
...
How to reproduce:
host# ./dracut.sh -o 'dracut-systemd systemd systemd-initrd' --local -f ./initramfs.img
host# qemu-system-x86_64 -initrd ./initramfs.img \
-append 'root=/dev/sda1 rd.cmdline=ask rd.hostonly=0' \
...
Enter additional kernel command line parameter (end with ctrl-d or .)
> rd.break
> .
...
There is no "Break before switch_root"
...
Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
9 years ago
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
bb1b924792
TEST-30-ISCSI: some tests have unknown return code
...
by design
9 years ago
Harald Hoyer
24a78b2697
Fixed vlan, bonding, bridging, team logic
...
Call ifup for the slaves and assemble afterwards.
9 years ago
Harald Hoyer
918fbfcf6b
Merge pull request #111 from wyrmiyu/multipath_fix
...
multipath: fix majmin_to_mpath_dev()
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
2fd8588da5
dracut-functions.sh:fix check_vol_slaves() volume group name stripping
...
commit 466a59984a
removed whitespace
stripping from lvm volume group names.
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
b019952f6d
dracut.sh: fail hard, if we find modules and modules.dep is missing
...
If modules are present in /lib/modules/<kernelversion> and modules.dep
is empty, depmod was not run most likely.
9 years ago
Harald Hoyer
0a7d7f6310
dracut.cmdline: remove extra ":" from ip= doc
9 years ago
Harald Hoyer
60928f36b6
dracut.sh: restorecon final image file
...
Instead of "mv" use "cp --reflink=auto" and restorecon the final image
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
3f5e60bfc9
Merge pull request #109 from puleglot/fix_dev_unit_name
...
base/dracut-lib.sh:dev_unit_name() guard against $dev beginning with "-"
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
b8bccd398a
test/TEST-04-FULL-SYSTEMD: optionally install machine-info and *-id
9 years ago
Harald Hoyer
b830a31331
TEST-16-DMSQUASH: do not use "--" with ldconfig -r
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