]>
git.ipfire.org Git - thirdparty/dracut.git/log
Harald Hoyer [Fri, 13 Sep 2013 14:33:01 +0000 (16:33 +0200)]
dracut.sh: harden host_modalias reading
Some weird PPC driver make their modulias unreadable
$ cat /sys/devices/vio/4000/modalias
cat: /sys/devices/vio/4000/modalias: No such device
Harald Hoyer [Thu, 12 Sep 2013 12:52:20 +0000 (14:52 +0200)]
version 033
Colin Walters [Wed, 11 Sep 2013 13:04:45 +0000 (09:04 -0400)]
dracut.sh: Fixup previous commit to only read /sys and /proc in hostonly mode
The gnome-ostree build system generates dracut initramfs images on the
build server, therefore not in hostonly mode. The build system at the
moment doesn't mount /sys, and the previous commit caused a hard
failure due to lack of /sys/devices.
Because we only want /sys/devices in hostonly mode, just move those
bits inside the hostonly conditional above.
Harald Hoyer [Wed, 11 Sep 2013 07:57:52 +0000 (09:57 +0200)]
dracut-functions.sh: extend module_is_host_only()
If the currently running kernel is not present in the installer root,
fall back to modalias checking.
Harald Hoyer [Wed, 11 Sep 2013 07:57:25 +0000 (09:57 +0200)]
Makefile: create hostonly test image without debug
Harald Hoyer [Wed, 11 Sep 2013 07:56:57 +0000 (09:56 +0200)]
network: correctly name iBFT vlan devices
Harald Hoyer [Tue, 10 Sep 2013 08:51:04 +0000 (10:51 +0200)]
TEST-50-MULTINIC: improve interface test
Harald Hoyer [Tue, 10 Sep 2013 08:50:23 +0000 (10:50 +0200)]
nfs/nfsroot-cleanup.sh: silently try to umount rpc_pipefs
Harald Hoyer [Tue, 10 Sep 2013 08:49:51 +0000 (10:49 +0200)]
network/ifup.sh: ifup with dhcp, if no ip= params specified
Harald Hoyer [Tue, 10 Sep 2013 08:48:18 +0000 (10:48 +0200)]
network/net-genrules.sh: react also on NAME
Recent systemd-udevd network renaming rules work on NAME.
Also enqueue only one unique initqueue job.
Harald Hoyer [Mon, 9 Sep 2013 14:52:19 +0000 (16:52 +0200)]
dracut.sh: reorder things to let "--print-cmdline" work
Harald Hoyer [Mon, 9 Sep 2013 14:51:44 +0000 (16:51 +0200)]
bcache: newer util-linux supports bcache with blkid
and probe-bcache should not be needed in that case
Harald Hoyer [Mon, 9 Sep 2013 14:49:45 +0000 (16:49 +0200)]
dmsquash-live/iso-scan: do the iso scan regardless of /dev/loop0
The loop driver could be a module and would never be loaded, so the
iso-scan never takes place.
To let the iso-scan happen, it is now placed into the initqueue/settled
unconditionally.
Harald Hoyer [Thu, 5 Sep 2013 07:57:48 +0000 (09:57 +0200)]
no more global $CMDLINE
Do not use the global variable CMDLINE anymore. Use
CMDLINE=$(getcmdline)
WANG Chao [Wed, 4 Sep 2013 16:10:37 +0000 (00:10 +0800)]
dracut-lib: do not use cached CMDLINE in _getcmdline
Cached CMDLINE doesn't work 100%. For example the following case,
1. dracut starts to run dracut-cmdline.sh. CMDLINE is cached when calling
getarg 'rd.break=cmdline'.
2. In 92-parse-ibft.sh, ibft_to_cmdline() calls $(set_ifname ibft xx:xx..)
multiple times in each subshell.
3. In 1st call, set_ifname() will check $(getargs ifname) and write out
ifname=xxxx accordingly.
4. In 2nd call, set_ifname() will check $(getargs ifname) and it's wrong here.
Because in step 3, we introduce a new cmdline arg ifname=xxx, but CMDLINE
isn't updated. Thus we fail to get the new ifname arg.
It's doable to unset CMDLINE every time after a new cmdline arg is in. But
unset should be done in the parent process, because unset CMDLINE in a
subshell won't unset CMDLINE in its parent or sibling process. And also it's
painful to unset CMDLINE every time. In the future, functions and code
snippet could probably separate or move to other file, the unset CMDLINE could
malfunction again like this time.
So I'm thinking not to cache CMDLINE. It's doesn't hurt to re-read all the
cmdline args everytime. Because it's in initramfs, a non cached _getcmdline()
should be fast enough.
Please consider!
Thanks
WANG Chao
Harald Hoyer [Wed, 4 Sep 2013 07:45:04 +0000 (09:45 +0200)]
Rewrite "rootok" and "netroot" logic
Previously if "$rootok" = 1, parsing of netroot command line arguments
was skipped. For multiple netroot arguments, all parse scripts have to
run.
Previously only the first netroot argument was taken into account for
the parsing scripts. Now every netroot argument is processed.
WANG Chao [Tue, 3 Sep 2013 17:29:58 +0000 (01:29 +0800)]
net-lib: ibft_to_cmdline() fixes
Fix 3 issues in ibft_to_cmdline():
- unset local variables at the beginning of each loop
- only write vlan.conf when we write out ip=xxx
- when vlan id is 0, don't write out vlan.conf. Because 0 means untagged
and we don't actually need vlan interface.
Harald Hoyer [Tue, 3 Sep 2013 13:23:28 +0000 (15:23 +0200)]
iscsi: parse iscsi parameter, even if rootok=1
Harald Hoyer [Mon, 2 Sep 2013 08:27:46 +0000 (10:27 +0200)]
dracut-functions.sh:for_each_module_dir() skip empty modules
skip modules, which have no module-setup.sh, install or installkernel
https://bugzilla.redhat.com/show_bug.cgi?id=
1003153
Harald Hoyer [Wed, 28 Aug 2013 18:01:54 +0000 (20:01 +0200)]
dracut-logger.sh: check is journald.socket is active
before using systemd-cat, make sure someone is listening
Harald Hoyer [Wed, 28 Aug 2013 08:57:23 +0000 (10:57 +0200)]
resume: debian's resume is in /usr/lib/uswsusp
Hurray! Everybody reinvents the wheel!
Harald Hoyer [Tue, 27 Aug 2013 09:34:39 +0000 (11:34 +0200)]
dracut-functions.sh:get_devpath_block() make local vars local
Harald Hoyer [Mon, 26 Aug 2013 12:04:56 +0000 (14:04 +0200)]
dmraid/mdraid: improve hostonly recognition
Factor out get_devpath_block(), which also fixes a dmraid hostonly bug.
Also only include dmraid and mdraid, if they are actually in use.
Harald Hoyer [Mon, 26 Aug 2013 10:46:51 +0000 (12:46 +0200)]
dmraid/parse-dm.sh: if rd.md=0, use dmraid for imsm and ddf
Harald Hoyer [Mon, 26 Aug 2013 08:19:49 +0000 (10:19 +0200)]
i18n: check for setfont and loadkeys binaries
Harald Hoyer [Mon, 26 Aug 2013 08:18:47 +0000 (10:18 +0200)]
network: move ibft parsing before all other network cmdline parser
otherwise the config produced by ibft will not get processed
Harald Hoyer [Fri, 23 Aug 2013 17:04:12 +0000 (19:04 +0200)]
dracut-functions.sh:get_persistent_dev() do not check non-existent dirs
Harald Hoyer [Thu, 22 Aug 2013 09:24:01 +0000 (11:24 +0200)]
use ${var:+val} rather than ${var+val}
${var:+val} also catches var=""
Harald Hoyer [Thu, 22 Aug 2013 08:53:43 +0000 (10:53 +0200)]
dracut-functions.sh:inst_rules() do not install from /etc in generic mode
In generic mode, local configuration should not be part of the image.
Also handle symlinks for rule files.
Harald Hoyer [Thu, 22 Aug 2013 08:52:49 +0000 (10:52 +0200)]
dracut-functions.sh: use builtin bash functions rather than tr
convert uppercase to lowercase using bash syntax
Harald Hoyer [Thu, 22 Aug 2013 08:24:15 +0000 (10:24 +0200)]
removed freenode.txt
Harald Hoyer [Thu, 22 Aug 2013 08:14:24 +0000 (10:14 +0200)]
freenode IRC #dracut verification
Harald Hoyer [Thu, 22 Aug 2013 07:39:38 +0000 (09:39 +0200)]
dracut.asc: document debugging dracut on shutdown
Harald Hoyer [Wed, 21 Aug 2013 11:12:55 +0000 (13:12 +0200)]
add dracut.css for dracut.html
Harald Hoyer [Tue, 20 Aug 2013 14:15:17 +0000 (16:15 +0200)]
url-lib.sh: handle 0-size files with curl
https://bugzilla.redhat.com/show_bug.cgi?id=989133#c9
Harald Hoyer [Tue, 20 Aug 2013 14:01:10 +0000 (16:01 +0200)]
dracut-functions.sh: add expand_persistent_dev()
also fixes missing '{' for LABEL=... swaps
Harald Hoyer [Tue, 20 Aug 2013 13:09:33 +0000 (15:09 +0200)]
network: do not depend on ifcfg
rather let ifcfg return 0 if /etc/sysconfig/network-scripts exists
Harald Hoyer [Tue, 20 Aug 2013 10:39:57 +0000 (12:39 +0200)]
dracut-032
Harald Hoyer [Tue, 20 Aug 2013 11:08:11 +0000 (13:08 +0200)]
add newline to cmdline config files
Harald Hoyer [Tue, 20 Aug 2013 10:01:17 +0000 (12:01 +0200)]
dracut.sh: recognize swap entries in fstab with mountpoint "none"
Harald Hoyer [Tue, 20 Aug 2013 08:28:14 +0000 (10:28 +0200)]
add persistent_policy configuration option
Harald Hoyer [Tue, 20 Aug 2013 08:27:29 +0000 (10:27 +0200)]
dracut.conf.5.asc: correct ro_mnt documentation
Harald Hoyer [Tue, 20 Aug 2013 07:03:22 +0000 (09:03 +0200)]
dracut-functions.sh:dracut_module_included() check with spaces
check also for surrounding spaces in the module strings
Harald Hoyer [Tue, 20 Aug 2013 07:02:48 +0000 (09:02 +0200)]
dracut.sh: fixed checking for FIPS mode
WANG Chao [Fri, 16 Aug 2013 05:13:28 +0000 (13:13 +0800)]
systemd: pre-pivot hooks runs after /sysroot is mounted
If rootflags=nofail, sysroot.mount won't strictly run "Before"
initrd-root-fs.target. So we need to order dracut-pre-pivot after
sysroot.mount.
Daniel Schaal [Fri, 16 Aug 2013 21:16:15 +0000 (23:16 +0200)]
dracut.sh: Fix [no-]early-microcode parameter and add documentation.
[no-]early-microcode was missing from getopt argument list.
Let arguments passed by command line override config files.
Harald Hoyer [Fri, 16 Aug 2013 09:52:07 +0000 (11:52 +0200)]
dracut.sh: add --persistent-policy option
--persistent-policy <policy>:
Use <policy> to address disks and partitions.
<policy> can be any directory name found in /dev/disk.
E.g. "by-uuid", "by-label"
Harald Hoyer [Fri, 16 Aug 2013 09:00:45 +0000 (11:00 +0200)]
base/dracut-lib.sh: move warn() definition before usage
Harald Hoyer [Fri, 16 Aug 2013 09:00:21 +0000 (11:00 +0200)]
dracut.spec: correct License string
Harald Hoyer [Thu, 15 Aug 2013 14:24:13 +0000 (16:24 +0200)]
dracut.spec: add bash module
Harald Hoyer [Thu, 15 Aug 2013 13:52:22 +0000 (15:52 +0200)]
add parameter --print-cmdline
This prints the kernel command line parameters for the current disk
layout.
$ dracut --print-cmdline
rd.luks.uuid=luks-
e68c8906 -6542-4a26-83c4-
91b4dd9f0471
rd.lvm.lv=debian/root rd.lvm.lv=debian/usr root=/dev/mapper/debian-root
rootflags=rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered
rootfstype=ext4
Harald Hoyer [Thu, 15 Aug 2013 13:54:18 +0000 (15:54 +0200)]
resurrect TEST-14-IMSM
Harald Hoyer [Thu, 15 Aug 2013 10:23:04 +0000 (12:23 +0200)]
dracut-functions.sh: add find_mp_fsopts
Harald Hoyer [Thu, 15 Aug 2013 10:22:26 +0000 (12:22 +0200)]
dracut-functions.sh: no more 'echo'
Harald Hoyer [Thu, 15 Aug 2013 08:56:31 +0000 (10:56 +0200)]
rootfs-block: search all host_devs for a journal device
Harald Hoyer [Thu, 15 Aug 2013 09:14:14 +0000 (11:14 +0200)]
dracut-functions.sh: add find_dev_fsopts()
Harald Hoyer [Thu, 15 Aug 2013 08:44:20 +0000 (10:44 +0200)]
Create initramfs without using udevadm
This enables building a hostonly image, without the udev database
populated.
Harald Hoyer [Thu, 15 Aug 2013 08:25:19 +0000 (10:25 +0200)]
testsuite: fixed network interface names
Harald Hoyer [Thu, 15 Aug 2013 06:32:38 +0000 (08:32 +0200)]
dracut.spec: dracut-network requires dhclient
Harald Hoyer [Wed, 14 Aug 2013 13:02:46 +0000 (15:02 +0200)]
TEST-12-RAID-DEG: enter UUID in crypttab rather than md0
Harald Hoyer [Wed, 14 Aug 2013 10:54:48 +0000 (12:54 +0200)]
Makefile: do syncheck before creating the archive or rpm
Harald Hoyer [Wed, 14 Aug 2013 10:54:33 +0000 (12:54 +0200)]
dracut-functions.sh: fixed vercmp()
WANG Chao [Mon, 12 Aug 2013 08:43:52 +0000 (16:43 +0800)]
network: also wait for ethernet interfaces to setup
We only wait for master interfaces for bridge/bonding/team/vlan case.
If none of these complex network is configured, we should wait for
ethernet interface (bootdev) instead.
Harald Hoyer [Wed, 14 Aug 2013 08:33:19 +0000 (10:33 +0200)]
shutdown: fixed killall_proc_mountpoint()
Harald Hoyer [Tue, 13 Aug 2013 18:00:55 +0000 (20:00 +0200)]
dracut-functions.sh: if no libdirs are set, take the ld.so.cache paths
Harald Hoyer [Tue, 13 Aug 2013 08:26:29 +0000 (10:26 +0200)]
crypt: only manually activate systemd-cryptsetup, if not in crypttab
Only additional rd.luks.UUID have to be manually activated.
Harald Hoyer [Mon, 12 Aug 2013 23:20:06 +0000 (01:20 +0200)]
crypt/crypt-run-generator: also skip if UUID match in crypttab
Harald Hoyer [Mon, 12 Aug 2013 22:39:10 +0000 (00:39 +0200)]
add bash module
Harald Hoyer [Mon, 12 Aug 2013 22:35:10 +0000 (00:35 +0200)]
crypt/module-setup.sh: use crypttab in hostonly and don't install cmdline
Harald Hoyer [Mon, 12 Aug 2013 22:19:05 +0000 (00:19 +0200)]
fs-lib/module-setup.sh: install fsck and fsck.ext*
Harald Hoyer [Mon, 12 Aug 2013 21:55:50 +0000 (23:55 +0200)]
dracut.sh: always assemble /usr in the initramfs
Harald Hoyer [Mon, 12 Aug 2013 21:50:30 +0000 (23:50 +0200)]
dracut.sh: always assemble /usr device in initramfs
Harald Hoyer [Mon, 12 Aug 2013 21:50:07 +0000 (23:50 +0200)]
lsinitrd.sh: fixed modules.txt path
Harald Hoyer [Mon, 12 Aug 2013 11:08:17 +0000 (13:08 +0200)]
systemd/dracut-initqueue.sh: added missing "then"
Harald Hoyer [Mon, 12 Aug 2013 10:57:13 +0000 (12:57 +0200)]
base: don't install switch_root, if systemd is used
Harald Hoyer [Mon, 12 Aug 2013 10:46:35 +0000 (12:46 +0200)]
dracut.sh: fixed typo
Harald Hoyer [Mon, 12 Aug 2013 10:46:03 +0000 (12:46 +0200)]
dracut.sh: use local lsinitrd.sh for "-l"
Harald Hoyer [Mon, 12 Aug 2013 10:44:10 +0000 (12:44 +0200)]
dracut-logger.sh: saveguard logger with --
Harald Hoyer [Fri, 9 Aug 2013 13:47:30 +0000 (15:47 +0200)]
dracut-logger.sh: do not unset logging messages if sysloglvl is set
Harald Hoyer [Fri, 9 Aug 2013 13:35:20 +0000 (15:35 +0200)]
lsinitrd.sh: fixed case
dyoung@redhat.com [Thu, 8 Aug 2013 06:05:02 +0000 (14:05 +0800)]
omit drivers fix
Because omit_drivers list use underline always, so when maching with it
the _mod need to be converted as well or sometimes omit-drivers will fail
silently.
Fix this by replace '-' with '_' in instmods function.
Signed-off-by: Dave Young <dyoung@redhat.com>
Harald Hoyer [Fri, 9 Aug 2013 08:44:34 +0000 (10:44 +0200)]
multipath: need_shutdown if multipath devices exist
https://bugzilla.redhat.com/show_bug.cgi?id=994913
Harald Hoyer [Fri, 9 Aug 2013 08:33:27 +0000 (10:33 +0200)]
iscsi/module-setup.sh: install some modules regardless of hostonly
Harald Hoyer [Wed, 7 Aug 2013 14:05:03 +0000 (16:05 +0200)]
network/net-lib.sh: fix ibft interface configuration
also skip ibft$num names, which have been already given
https://bugzilla.redhat.com/show_bug.cgi?id=989944
James Lee [Tue, 6 Aug 2013 15:25:58 +0000 (11:25 -0400)]
crypt: Fix typo--/etc/crypttab not /etc/cryptab
1ae8b8a breaks the crypt module for those who use keyfiles due to a
typo leading to the exclusion of /etc/crypttab from the initrd.
Harald Hoyer [Tue, 6 Aug 2013 14:56:42 +0000 (16:56 +0200)]
dracut.sh: check the value of --kver
https://bugzilla.redhat.com/show_bug.cgi?id=993327
Harald Hoyer [Tue, 6 Aug 2013 09:43:58 +0000 (11:43 +0200)]
dracut.sh: do not strip in FIPS mode
Harald Hoyer [Tue, 6 Aug 2013 09:01:45 +0000 (11:01 +0200)]
51-dracut-rescue.install: fixed rescue image creation
Harald Hoyer [Mon, 5 Aug 2013 10:10:12 +0000 (12:10 +0200)]
dracut-functions.sh: inst_multiple == dracut_install
Harald Hoyer [Mon, 5 Aug 2013 09:47:54 +0000 (11:47 +0200)]
dracut-functions.sh: removed non dracut-install shell functions
Harald Hoyer [Mon, 5 Aug 2013 09:25:45 +0000 (11:25 +0200)]
dracut.sh/dracut-functions.sh: handle root on non-block device
Harald Hoyer [Mon, 5 Aug 2013 09:23:16 +0000 (11:23 +0200)]
systemd/dracut-initqueue.sh: continue to boot if finished failed
but /sysroot/etc/fstab exists.
Harald Hoyer [Mon, 5 Aug 2013 09:22:55 +0000 (11:22 +0200)]
dracut.asc: small corrections
Harald Hoyer [Mon, 5 Aug 2013 09:22:21 +0000 (11:22 +0200)]
dracut.sh: call find with -print0 and cpio with --null
Harald Hoyer [Mon, 5 Aug 2013 09:14:24 +0000 (11:14 +0200)]
lsinitrd.sh: add old cpio signature
WANG Chao [Thu, 1 Aug 2013 10:54:55 +0000 (18:54 +0800)]
95terminfo: install vt102
systemd uses vt102 as default term for tty:
commit
acda6a0
Author: Lennart Poettering <lennart@poettering.net>
Date: Sun Apr 22 02:45:39 2012 +0200
default to v102 everywhere, instead of vt100, to synchronize with agetty
Signed-off-by: WANG Chao <chaowang@redhat.com>
Harald Hoyer [Wed, 31 Jul 2013 15:28:04 +0000 (17:28 +0200)]
cms/cmssetup.sh: correct port for zfcp.conf
Harald Hoyer [Wed, 31 Jul 2013 15:17:37 +0000 (17:17 +0200)]
lvm: add "--yes" to lvm lvchange
Baoquan He [Tue, 23 Jul 2013 10:16:00 +0000 (18:16 +0800)]
Change the implementation of action_on_fail
Currently when action_on_fail is enabled, the emergency_shell won't be called.
In kdump even though user specify the default action as emergency_shell,
dracut skip it. Now change the implementation of action_on_fail to depend
on a file which is created by kdump when making kdump initrd, then remove it
at the beginning of kdump. This can solve the explicit emergency_shell problem.
And action_on_fail won't need paramenters, remove the relevant description in
dracut man page.
Signed-off-by: Baoquan He <bhe@redhat.com>
Harald Hoyer [Wed, 31 Jul 2013 13:55:13 +0000 (15:55 +0200)]
Revert "base: setup correct system time and time zone in initrd"
This reverts commit
77364fd6bb01ea184db73b1a5ad05da984752293 .
Too many problems with adjtime in the initramfs
https://bugzilla.redhat.com/show_bug.cgi?id=981617