Colin Guthrie
68c49db952
install/dracut-install.c: No need to compare the NULL byte each time.
2012-08-21 18:46:20 +02:00
Colin Guthrie
f9c7788ba5
install/dracut-install.c: Deal gracefully with paths containing double /'s
...
While such paths should not be included internally, we cannot
guarantee that external scripts with shebangs will not do this.
Some older versions of plymouth also resulted in double /'s
in some paths, so best deal with this gracefully.
2012-08-21 18:46:20 +02:00
Colin Guthrie
68318328f1
install/dracut-install.c: Ensure deps are resolved when handling scripts
...
If we are doing lazy dep solving and happen to process a script with a
shebang on e.g. /bin/bash before we encounter the actual binary itself
we effectively ignore the fact that we've been asked to resolve the deps
and put the item in the 'seen' hashmap. Thus when we later really do try
and resolve deps, we short circuit and don't do anything.
Example test case:
$ cd
$ mkdir -p foo/bin
$ cp /bin/bash foo/bin
$ echo '#!/bin/bash' >foo/bin/script
$ dracut-install -D $HOME/foo -R $HOME/foo/bin/script $HOME/foo/bin/bash
2012-08-21 18:46:20 +02:00
Harald Hoyer
c9a9968dfc
fips: set /boot as symlink to /sysroot/boot if no boot= parameter
...
otherwise sha512hmac will error out with:
sha512hmac -c /sysroot/boot/.vmlinuz-2.6.32-220.el6.x86_64.hmac
Error opening "/boot/vmlinuz-2.6.32-220.el6.x86_64": No such file or directory.
2012-08-21 18:46:20 +02:00
Harald Hoyer
48dba7f9ac
network: reintroduce rd.neednet
...
rd.neednet is used by anaconda and the network interfaces cannot
be known in advance.
2012-08-21 18:46:20 +02:00
Harald Hoyer
bdf1f472b4
add back scsi_wait_scan
2012-08-17 09:22:12 +02:00
Harald Hoyer
e4297a66b1
mdraid: always create need_shutdown, if we have assembled a raid
2012-08-14 17:44:46 +02:00
Dennis Gilmore
ec6d8eab69
include the omap_hsmmc module on arm
2012-08-02 12:18:48 +02:00
Harald Hoyer
dece5ee1f5
dracut.conf.5.asc: s#dracut/conf.d#dracut.conf.d#g
2012-08-01 16:35:46 +02:00
Amadeusz Żołnowski
a41dc8f969
dracut.conf.d/gentoo.conf.example: fix header
2012-08-01 16:24:40 +02:00
Harald Hoyer
aa11b710ce
COPYING: updated to recent version of http://www.gnu.org/licenses/gpl-2.0.txt
2012-08-01 15:53:25 +02:00
Harald Hoyer
6af5a4accf
version 023
2012-08-01 15:30:30 +02:00
Frederic Crozat
ec8974914f
ensure af_packet module is loaded (if not built-in)
2012-08-01 14:40:43 +02:00
Frederic Crozat
b9775297cd
add package name for openSUSE
2012-08-01 14:40:28 +02:00
Harald Hoyer
4a6b33f1ee
plymouth/plymouth-pretrigger.sh: s/! -n/-z/
2012-08-01 14:36:58 +02:00
Harald Hoyer
7dd7ff0f33
base/dracut-lib.sh: make use of DRACUT_SYSTEMD
2012-08-01 14:36:38 +02:00
Dave Young
126732bcc1
split emergency_shell function
...
Kdump dracut hooks need to enter emergency shell, currently it directly call
"sh -i -l", with recent dracut this does not work anymore without proper ctty.
It will be convinient to seperate a standalone function _emergency_shell for
dracut modules to call.
2012-08-01 14:29:15 +02:00
Harald Hoyer
23d6dcd125
test: s/ib700wdt/i6300esbwdt/g
2012-08-01 12:53:39 +02:00
Harald Hoyer
9fd9e96130
test/Makefile: fixed TESTS parsing
2012-08-01 12:50:54 +02:00
Harald Hoyer
f0a7fc5b43
watchdog: set watchdog timeout with wdctl, if available
...
"wdctl -s" does not yet exist upstream. I patched
util-linux/sys-utils/wdctl.c to set the timeout.
2012-08-01 12:49:45 +02:00
Chao Wang
d82e0d7dd8
Revert "dracut-functions: $_x should exist, no need to test."
...
This reverts commit b2d225a669
.
When there's no /sys/dev/block/$2/slaves/*/dev/ exists, $_x will
be assigned with '/sys/dev/block/$2/slaves/*/dev/', this is invalid.
That commit will lead to some warn msg like:
cat: /sys/dev/block/8:16/slaves/*/dev: No such file or directory
cat: /sys/dev/block/8:32/slaves/*/dev: No such file or directory
2012-08-01 09:24:12 +02:00
Harald Hoyer
5545fc3046
base/dracut-lib.sh:ismounted() check for block device rather than pathname
2012-07-31 14:44:50 +02:00
Harald Hoyer
a638056838
base/dracut-lib.sh: fixed ismounted() for "/dev"
2012-07-31 14:43:05 +02:00
Harald Hoyer
1f524c4544
Prevent testsuite runs from non-root users.
2012-07-31 13:49:04 +02:00
Harald Hoyer
47b8f66ced
rootfs-block/mount-root.sh: corrected check for journaldev
2012-07-31 13:28:45 +02:00
Harald Hoyer
52da8a514a
dracut.cmdline.7.asc: corrected rd.retry section
2012-07-31 13:28:07 +02:00
Harald Hoyer
5cd7c104bd
document rd.retry and change the default value to 30s
...
Also start the timeout scripts after 2/3 of the time.
2012-07-31 12:37:35 +02:00
Amadeusz Żołnowski
173edca09e
dracut.cmdline.7: add NOTE about how dracut pipes key to cryptsetup
2012-07-31 12:28:55 +02:00
Harald Hoyer
506b219237
dracut.sh: create relative symlinks for /var/lock and /var/run
2012-07-31 11:48:03 +02:00
Harald Hoyer
6c83d7d5bf
dracut.sh: do not copy /var/run and /var/lock from the system
...
https://bugs.gentoo.org/show_bug.cgi?id=428142
If /var/run and /var/lock are real directories, we would end up with:
var/lock/lock -> /run/lock
var/run/run -> /run
2012-07-31 11:44:40 +02:00
Stefan Reimer
a059f72b09
i18n/module-setup.sh: fixed include parsing
...
Due to bug in module-setup.sh in the i18n module includes from the main
keymap are not working and not added to the initrd image.
Only one quotation per line is removed. Needs to remove all.
2012-07-31 11:36:17 +02:00
Amadeusz Żołnowski
afcebd136f
99shutdown: remove --no-wall argument for reboot, halt, etc...
...
In some distros (Gentoo, for example) these commands don't honor
--no-wall argument.
2012-07-31 10:55:17 +02:00
Harald Hoyer
3d3c192621
crypt/crypt-run-generator.sh: check if crypttab exists
2012-07-30 22:29:47 +02:00
Harald Hoyer
92b3ee855f
removed finished-ask-password.sh
2012-07-30 22:29:42 +02:00
Harald Hoyer
650ab3b077
TEST-10-RAID/test.sh: comment debug options
2012-07-30 21:07:14 +02:00
Harald Hoyer
474cca1e9d
TODO: update
2012-07-30 21:07:03 +02:00
Harald Hoyer
c0cae7f702
dmraid,mdraid,lvm,udev: don't process DM_MULTIPATH_DEVICE_PATH devs
2012-07-30 20:41:16 +02:00
Harald Hoyer
3f7e5358e5
crypt/crypt-run-generator.sh: do not add already existing luks
2012-07-30 20:41:16 +02:00
Harald Hoyer
3d352f5228
crypt: add systemd crypt support
2012-07-30 17:08:52 +02:00
Harald Hoyer
540eca9d9d
plymouth/plymouth-pretrigger.sh: don't "exit 0" for a sourced script
2012-07-30 17:08:52 +02:00
Harald Hoyer
19cd47fd26
plymouth/plymouth-newroot.sh: don't "exit 0" for sourced scripts
2012-07-30 17:08:52 +02:00
Harald Hoyer
cf62cc435f
virtfs/mount-virtfs.sh: don't exit != 0
2012-07-30 17:08:52 +02:00
Harald Hoyer
8b6bdafc39
systemd/module-setup.sh: install systemd udev rules
2012-07-30 17:08:52 +02:00
Harald Hoyer
27790828d1
base/dracut-lib.sh: fixed ismounted(<mountpoint>)
2012-07-30 17:08:52 +02:00
Harald Hoyer
d782ffb822
i18n/parse-i18n.sh: remove udev rules
2012-07-30 17:08:52 +02:00
Harald Hoyer
5a84ac3fe3
dracut-functions.sh: inst_hook() with [0-9]-<name>
2012-07-30 17:08:51 +02:00
Harald Hoyer
343b7d7488
kernel-modules/module-setup.sh: add missing "fi"
2012-07-30 17:08:51 +02:00
Harald Hoyer
aefea76cf8
set DRACUT_SYSTEMD for systemd mode in the initramfs
2012-07-30 17:08:51 +02:00
Harald Hoyer
4976edb1a6
dracut.spec: add Requires: kbd kbd-misc
2012-07-30 13:58:58 +02:00
Harald Hoyer
171ba532bc
plymouth/plymouth-newroot.sh: fixed pre-pivot hook
2012-07-30 13:39:37 +02:00