Harald Hoyer [Fri, 5 Jul 2013 13:31:06 +0000 (15:31 +0200)]
add PARTLABEL and PARTUUID
Harald Hoyer [Thu, 4 Jul 2013 10:31:31 +0000 (12:31 +0200)]
masterkey/module-setup.sh:check() check for $hostonly rather than "-h"
Harald Hoyer [Thu, 4 Jul 2013 10:29:59 +0000 (12:29 +0200)]
beautified shell code
checked with shellcheck http://www.shellcheck.net/about.html
Harald Hoyer [Fri, 28 Jun 2013 08:31:18 +0000 (10:31 +0200)]
use "rm --" to guard against filenames beginning with "-"
Harald Hoyer [Fri, 28 Jun 2013 08:22:27 +0000 (10:22 +0200)]
TEST-04-FULL-SYSTEMD/test.sh: dlfgjlkdfjgldfj
Harald Hoyer [Fri, 28 Jun 2013 08:21:42 +0000 (10:21 +0200)]
test/run-qemu: specify the kernel
Harald Hoyer [Fri, 28 Jun 2013 07:58:03 +0000 (09:58 +0200)]
systemd/module-setup.sh: add slices.target
Harald Hoyer [Wed, 26 Jun 2013 07:16:04 +0000 (09:16 +0200)]
TEST-04-FULL-SYSTEMD: call xargs with "-r"
Harald Hoyer [Wed, 26 Jun 2013 07:15:34 +0000 (09:15 +0200)]
systemd: add system.slice unit
Harald Hoyer [Mon, 24 Jun 2013 10:47:01 +0000 (12:47 +0200)]
use findmnt with "--source" or "--target"
This avoids hanging on stale NFS mounts, which are not part of the boot
process.
https://bugzilla.redhat.com/show_bug.cgi?id=975401
Harald Hoyer [Tue, 18 Jun 2013 15:54:30 +0000 (17:54 +0200)]
udev-rules: add 75-net-description.rules
we need IMPORT{builtin}="net_id" for the persistent network names
WANG Chao [Tue, 18 Jun 2013 05:58:04 +0000 (13:58 +0800)]
selinux: umount $NEWROOT/dev and its submounts
$NEWROOT/dev and its submounts should be umounted after we use it.
Otherwise it fails other scripts that umount /sysroot only.
Signed-off-by: WANG Chao <chaowang@redhat.com>
Harald Hoyer [Fri, 14 Jun 2013 13:31:28 +0000 (15:31 +0200)]
NEWS: update
Baoquan He [Thu, 13 Jun 2013 08:07:44 +0000 (16:07 +0800)]
90lvm/module-setup.sh: redirect error message of lvs to /dev/null
Signed-off-by: Baoquan He <bhe@redhat.com>
Harald Hoyer [Thu, 13 Jun 2013 13:15:55 +0000 (15:15 +0200)]
test/TEST-50-MULTINIC: fix interface test
Harald Hoyer [Thu, 13 Jun 2013 12:45:18 +0000 (14:45 +0200)]
network: refix BOOTIF logic
Harald Hoyer [Thu, 13 Jun 2013 12:44:47 +0000 (14:44 +0200)]
test/TEST-50-MULTINIC: fixed debug output
Harald Hoyer [Thu, 13 Jun 2013 12:44:13 +0000 (14:44 +0200)]
systemd/module-setup.sh: mkdir /etc/systemd
Will Woods [Thu, 13 Sep 2012 15:22:02 +0000 (11:22 -0400)]
net-lib: fix set_ifname()
/sys/class/$name$num isn't ever going to work; /sys/class/net/$name$num
(e.g. /sys/class/net/ibft0) should work right.
Will Woods [Thu, 13 Sep 2012 14:52:33 +0000 (10:52 -0400)]
net-lib: add configured_ifaces()
configured_ifaces is a function that returns the names of each interface
that the user wanted configured.
Currently, this is accomplished by reading the list from
/tmp/net.ifaces. But if we want to allow the user to specify an
interface by its MAC address or IP or something, we need a function that
will read the cache and convert the MACs etc. to names.
(Obviously this conversion only works once udev starts, so it will warn
you if you try it too early.)
Will Woods [Thu, 23 Aug 2012 20:31:09 +0000 (16:31 -0400)]
net-lib: add find_iface_with_link()
Add a function to look at the system network interfaces and return the
first one it finds with an active link (if any.)
Will Woods [Thu, 23 Aug 2012 18:59:35 +0000 (14:59 -0400)]
Don't explode when mixing BOOTIF and ip=
Now that we can use a MAC as a device identifier, we can just bring up
the device specified by BOOTIF as a normal interface.
So instead of ignoring everything but BOOTIF, we'll put BOOTIF in the
IFACES list and bring it up as normal, defaulting to DHCP if nothing
else is specified.
We can also handle anaconda-style 'ksdevice=bootif' this way.
Will Woods [Wed, 22 Aug 2012 20:59:16 +0000 (16:59 -0400)]
net-genrules: accept MAC address for $iface, cleanups
A MAC address is a unique identifier for a particular network interface.
We can use the MAC to generate udev rules to bring up that interface,
like we currently do with BOOTIF.
This patch allows interfaces to be specified as a MAC address, either
in the usual colon-separated form or the PXE-style dash-separated form.
(The latter is more useful on the commandline, since it allows for
arguments like: "ip=77-77-6f-6f-64-73:dhcp")
This is useful since it's common for a user who is booting a new OS for
the first time to know the MAC of the device, but not know what the
kernel name will be.
Will Woods [Wed, 22 Aug 2012 16:57:43 +0000 (12:57 -0400)]
move fix_bootif to net-lib
This might be useful to other parts of dracut; move it to net-lib.sh.
Harald Hoyer [Thu, 13 Jun 2013 10:05:10 +0000 (12:05 +0200)]
Makefile: source dracut-version.sh and correct dist tarball
Harald Hoyer [Thu, 13 Jun 2013 09:58:00 +0000 (11:58 +0200)]
Makefile: pipe git describe errors to /dev/null
Harald Hoyer [Thu, 13 Jun 2013 09:53:32 +0000 (11:53 +0200)]
add dracut-shutdown.service.8.asc manpage
Harald Hoyer [Thu, 13 Jun 2013 09:40:58 +0000 (11:40 +0200)]
move dracut-shutdown.service to modules.d/98systemd
Harald Hoyer [Thu, 13 Jun 2013 09:09:52 +0000 (11:09 +0200)]
Don't use do syncheck for target all and refine syncheck
instead of "dash -n" we now use "bash --posix -n"
we also check for "[[ " in posix shell files
Harald Hoyer [Thu, 13 Jun 2013 08:52:46 +0000 (10:52 +0200)]
systemd: make unit files symlinks
Harald Hoyer [Thu, 13 Jun 2013 08:37:45 +0000 (10:37 +0200)]
systemd/dracut-pre-pivot.service: also execute for cleanup hooks or rd.break
Harald Hoyer [Thu, 13 Jun 2013 07:29:17 +0000 (09:29 +0200)]
i18n: make the default font configurable
To set the default font for your distribution, add
i18n_default_font="latarcyrheb-sun16"
to your /lib/dracut/dracut.conf.d/01-dist.conf distribution config.
Harald Hoyer [Wed, 12 Jun 2013 15:42:35 +0000 (17:42 +0200)]
network: wait 40 seconds for IPv6 auto configuration
https://bugzilla.redhat.com/show_bug.cgi?id=973719
Harald Hoyer [Wed, 12 Jun 2013 11:29:39 +0000 (13:29 +0200)]
NEWS: update
Harald Hoyer [Wed, 12 Jun 2013 11:16:33 +0000 (13:16 +0200)]
rename kernel command line param action_on_fail to rd.action_on_fail
Harald Hoyer [Wed, 12 Jun 2013 10:43:14 +0000 (12:43 +0200)]
dmsquash-live/iso-scan: wait until the iso-scan/filename is found
Do not only run once, but wait until all devices are found.
Harald Hoyer [Fri, 7 Jun 2013 11:56:16 +0000 (13:56 +0200)]
systemd/dracut-initqueue.service: specify all initqueues
Harald Hoyer [Fri, 7 Jun 2013 10:39:46 +0000 (12:39 +0200)]
TODO: update
WANG Chao [Fri, 7 Jun 2013 09:50:56 +0000 (17:50 +0800)]
dracut-initqueue.service: Fix systemd start condition
Scripts in dracut initqueue hooks are placed under
/usr/lib/dracut/hooks/initqueue/*/ directory.
And also start initqueue service when kernel cmdline has
rd.break=initqueue
Signed-off-by: WANG Chao <chaowang@redhat.com>
Harald Hoyer [Thu, 6 Jun 2013 13:40:29 +0000 (15:40 +0200)]
udev-rules: add 80-net-name-slot.rules
Harald Hoyer [Thu, 6 Jun 2013 12:13:36 +0000 (14:13 +0200)]
cms/cmssetup.sh: untabify
Harald Hoyer [Thu, 6 Jun 2013 12:13:01 +0000 (14:13 +0200)]
cms/cmssetup.sh: reload udev rules after adding them
Harald Hoyer [Thu, 6 Jun 2013 10:32:36 +0000 (12:32 +0200)]
cms/cmssetup.sh: fix LAYER2 ccw.conf setup
Harald Hoyer [Thu, 6 Jun 2013 10:28:02 +0000 (12:28 +0200)]
cms/cmsifup.sh: correctly set MACADDR and MTU for the ip line
https://bugzilla.redhat.com/show_bug.cgi?id=971025
Harald Hoyer [Thu, 6 Jun 2013 10:27:19 +0000 (12:27 +0200)]
cms/cmssetup.sh: do not echo newlines for ccw.conf
https://bugzilla.redhat.com/show_bug.cgi?id=970982
WANG Chao [Thu, 6 Jun 2013 09:56:11 +0000 (17:56 +0800)]
base: setup correct system time and time zone in initrd
Currently in initrd, hardware clock is always considered to use UTC time
format and system time zone is also UTC. Thus system time isn't correct
if hw clock is localtime or we're using other time zone in real root.
To fix this, install /etc/adjtime and /etc/localtime to initrd. If not
using systemd, install /usr/sbin/hwclock for dracut init to setup system
time.
[harald: combined the two hostonly if's]
Signed-off-by: WANG Chao <chaowang@redhat.com>
Signed-off-by: Harald Hoyer <harald@redhat.com>
Harald Hoyer [Thu, 6 Jun 2013 09:31:07 +0000 (11:31 +0200)]
Makefile: report syntax check files for V=1
Harald Hoyer [Thu, 6 Jun 2013 09:06:55 +0000 (11:06 +0200)]
dracut-install: install libs also from one dir above
some HW has different flavors of basic libs
$ ldconfig -p|fgrep libc.so
libc.so.6 (libc6,64bit, hwcap: 0x0000001000000000, OS ABI: Linux 2.6.32) => /lib64/power6/libc.so.6
libc.so.6 (libc6,64bit, hwcap: 0x0000000000000200, OS ABI: Linux 2.6.32) => /lib64/power6x/libc.so.6
libc.so.6 (libc6,64bit, OS ABI: Linux 2.6.32) => /lib64/libc.so.6
because setting LD_HWCAP_MASK=0 does not work, we have to workaround
this.
$ LD_TRACE_LOADED_OBJECTS=1 LD_HWCAP_MASK=0 /lib64/ld64.so.1 /bin/sh | fgrep libc.so
libc.so.6 => /lib64/power6/libc.so.6 (0x000000804e260000)
Now we try to install the same library from one directory above the one
we installed also.
Harald Hoyer [Thu, 6 Jun 2013 07:40:04 +0000 (09:40 +0200)]
lvm: fixed "thin" recognition
Dennis Gilmore [Tue, 4 Jun 2013 18:40:49 +0000 (13:40 -0500)]
include panel-tfp410 module on arm systems in the initramfs needed for framebuffer on omap systems
Harald Hoyer [Fri, 31 May 2013 08:00:07 +0000 (10:00 +0200)]
TEST-99-RPM: generate rpms and exclude /boot loader entries
Harald Hoyer [Fri, 31 May 2013 07:04:55 +0000 (09:04 +0200)]
dmsquash-live/dmsquash-live-root.sh: fixup
32214acb3ae
Harald Hoyer [Fri, 31 May 2013 05:46:08 +0000 (07:46 +0200)]
dracut-functions.sh:get_persistent_dev() fix case for multipath
/dev/mapper/mpath* is not a persistent device path
https://bugzilla.redhat.com/show_bug.cgi?id=969068
Harald Hoyer [Thu, 30 May 2013 12:37:41 +0000 (14:37 +0200)]
ifcfg/write-ifcfg.sh: fixed logic
seems like nobody tested this with recent dracut versions.
Harald Hoyer [Thu, 30 May 2013 10:02:59 +0000 (12:02 +0200)]
lvm: add tools for thin provisioning
https://bugzilla.redhat.com/show_bug.cgi?id=921235
Harald Hoyer [Thu, 30 May 2013 09:38:23 +0000 (11:38 +0200)]
network: wait for all required interfaces if "rd.neednet=1"
also set bootdev to the first configured interface, if missing
https://bugzilla.redhat.com/show_bug.cgi?id=801829
Harald Hoyer [Thu, 30 May 2013 09:14:39 +0000 (11:14 +0200)]
systemd/emergency.service: do not run for action_on_fail=continue
same as for dracut-emergency.service
Harald Hoyer [Thu, 30 May 2013 07:26:43 +0000 (09:26 +0200)]
dmsquash-live/dmsquash-live-root.sh: add parameter rd.live.squashimg
rd.live.squashimg names the squash image in the rd.live.dir
and defaults to squashfs.img
https://bugzilla.redhat.com/show_bug.cgi?id=789036
https://bugzilla.redhat.com/show_bug.cgi?id=782108
Harald Hoyer [Thu, 30 May 2013 06:38:40 +0000 (08:38 +0200)]
kernel-modules/module-setup.sh: add hid-hyperv and hv-vmbus
Harald Hoyer [Thu, 30 May 2013 06:32:18 +0000 (08:32 +0200)]
base/dracut-lib.sh: export DRACUT_SYSTEMD and NEWROOT
dyoung@redhat.com [Thu, 30 May 2013 06:19:00 +0000 (14:19 +0800)]
selinux: load_policy script fix
chroot load_policy will use selinuxfs which should be mounted
in $NEWROOT/sys/fs/selinux for Fedora 19, but because there's
no $NEWROOT/sys/fs, so later process will fail.
Fixing this by bind mount /sys to $NEWROOT/sys.
Signed-off-by: Dave Young <dyoung@redhat.com>
Dan Horák [Wed, 29 May 2013 09:26:56 +0000 (11:26 +0200)]
use system provides udev rule and initialization script
Baoquan He [Wed, 29 May 2013 06:33:06 +0000 (14:33 +0800)]
99fs-lib/fs-lib.sh: Let user specify the action after fail for fsck
The fsck is ignored when replace emergency_shell with action_on_fail,
now add it.
Signed-off-by: Baoquan He <bhe@redhat.com>
Harald Hoyer [Wed, 29 May 2013 15:51:57 +0000 (17:51 +0200)]
fs-lib/module-setup.sh: add xfs_metadump
Harald Hoyer [Wed, 29 May 2013 12:45:59 +0000 (14:45 +0200)]
kernel-modules/module-setup.sh: add nvme kernel module
apparently not caught by the block driver regexp
https://bugzilla.redhat.com/show_bug.cgi?id=910734
Harald Hoyer [Wed, 29 May 2013 12:38:52 +0000 (14:38 +0200)]
ifcfg/write-ifcfg.sh:
- fix ONBOOT for slaves
- set TYPE=Bond for bonding
https://bugzilla.redhat.com/show_bug.cgi?id=919001
Harald Hoyer [Wed, 29 May 2013 12:28:25 +0000 (14:28 +0200)]
udev-rules/module-setup.sh: optionally install /etc/pcmcia/config.opts
https://bugzilla.redhat.com/show_bug.cgi?id=920076
Harald Hoyer [Wed, 29 May 2013 11:31:54 +0000 (13:31 +0200)]
crypt-loop/module-setup.sh: install loop kernel module
Harald Hoyer [Wed, 29 May 2013 11:20:00 +0000 (13:20 +0200)]
i18n/module-setup.sh: install default font latarcyrheb-sun16
Harald Hoyer [Wed, 29 May 2013 09:33:25 +0000 (11:33 +0200)]
dracut-emergency.service: do not start for "action_on_fail=continue"
Dennis Schridde [Fri, 17 May 2013 11:54:57 +0000 (13:54 +0200)]
[40network] Provide a hostname fallback function, in case there is no executable of this name
Harald Hoyer [Tue, 28 May 2013 14:56:40 +0000 (16:56 +0200)]
ifcfg/write-ifcfg.sh: proper NAME the interfaces
https://bugzilla.redhat.com/show_bug.cgi?id=965842
Harald Hoyer [Tue, 28 May 2013 14:34:34 +0000 (16:34 +0200)]
btrfs: include btrfs-zero-log in the initramfs
https://bugzilla.redhat.com/show_bug.cgi?id=963257
Harald Hoyer [Tue, 28 May 2013 14:15:24 +0000 (16:15 +0200)]
url-lib/url-lib.sh: turn off curl globbing
https://bugzilla.redhat.com/show_bug.cgi?id=907497
Harald Hoyer [Tue, 28 May 2013 13:40:45 +0000 (15:40 +0200)]
dracut.spec: put selinux for kdump crash file contexts
Kamil Rytarowski [Sat, 11 May 2013 12:54:38 +0000 (14:54 +0200)]
Fix memory leak
Kamil Rytarowski [Sat, 11 May 2013 12:40:19 +0000 (14:40 +0200)]
Always check the return number of asprintf
asprintf prints to an allocated string. When successful, the
functions return the number of bytes printed. If memory allocation
wasn't possible, or some other error occurs, the function will return
-1.
Don't check strp as a result of asprintf, it's content may be undefined.
man 3 asprintf
Kamil Rytarowski [Sat, 11 May 2013 11:49:00 +0000 (13:49 +0200)]
Use consistiently termination code macros
Operate in install_all and install_one consequently on EXIT_SUCCESS
and EXIT_FAILURE termination code macros as they are meant to be
returned from these functions.
Kamil Rytarowski [Sat, 11 May 2013 15:06:45 +0000 (17:06 +0200)]
Introduce stricter type correctness
Kamil Rytarowski [Sat, 11 May 2013 09:39:46 +0000 (11:39 +0200)]
Fix parsing command line arguments
Adjust correctly the *optstring argument of getopt_long. Add support
for a missing option -v|--verbose and drop unknown options -D, -I and -L.
Baoquan He [Thu, 9 May 2013 08:38:53 +0000 (16:38 +0800)]
01fips/module-setup.sh: add libssl.so.10 to make kdump work with fips mode
FIPS can work well in 1st kernel, but failed in kdump kernel. the
libssl.so.10 and related hmac file are needed. Now add it and it
works.
Signed-off-by: Baoquan He <bhe@redhat.com>
Harald Hoyer [Tue, 28 May 2013 12:25:49 +0000 (14:25 +0200)]
dracut-functions.sh: clarify instmods() error message
Harald Hoyer [Tue, 28 May 2013 11:26:05 +0000 (13:26 +0200)]
don't add volatile swap partitions to host_devs
Harald Hoyer [Tue, 28 May 2013 10:50:57 +0000 (12:50 +0200)]
systemd: set environment vars DRACUT_SYSTEMD, NEWROOT in service file
Adam Williamson [Wed, 22 May 2013 20:56:58 +0000 (13:56 -0700)]
don't specify "p" as a separator for dmraid arrays (RHBZ #966162)
As per RHBZ #966162, parted stopped unconditionally using "p" as a
separator for dmraid device names in version 3.1, so other things need
to fall in line with that convention now.
Harald Hoyer [Mon, 6 May 2013 12:06:29 +0000 (14:06 +0200)]
dracut.sh: degrade message about missing tools for stripping
warning -> info
https://bugzilla.redhat.com/show_bug.cgi?id=958519
Colin Guthrie [Fri, 3 May 2013 16:16:05 +0000 (17:16 +0100)]
usrmount: Fix miss-detection of btrfs subvolumes.
This causes the root FS options to be incorrectly applied to to /usr
In some cases this can cause boot failure e.g. due to and XFS /usr
not supporting the 'acl' option from the ext4 root FS.
https://bugs.mageia.org/show_bug.cgi?id=9884
Harald Hoyer [Tue, 30 Apr 2013 16:55:12 +0000 (18:55 +0200)]
zfcp: match udev rule against KERNEL=="zfcp"
zfcp_cfdc will go away in the future
tt
Harald Hoyer [Tue, 30 Apr 2013 16:54:33 +0000 (18:54 +0200)]
test: use grep option "-F" and install /etc/os-release
WANG Chao [Fri, 26 Apr 2013 07:16:19 +0000 (15:16 +0800)]
_emergency_shell: Show current working directory correctly in shell.
When dropped to emergency shell, for example, use rd.break=pre-pivot,
the PS1 won't correctly show current directory we're in:
pre-pivot:/# cd /sysroot/
pre-pivot:/#
(still shows "/")
Let's take a look at PS1 variable:
(I'm adding prefix/suffix 'x' to make it clear):
pre-pivot:/# echo x${PS1}x
xpre-pivot:/# x
(PS1 isn't dynamic)
Regarding the current dracut code, it should be:
pre-pivot:/# cd /sysroot/etc
pre-pivot:/sysroot/etc#
With this patch:
pre-pivot:/# echo x${PS1}x
xpre-pivot:${PWD}# x
(Now PS1 is dynamic, it will show the directory correctly)
I tested for both normal boot and kdump boot.
Signed-off-by: WANG Chao <chaowang@redhat.com>
Harald Hoyer [Mon, 29 Apr 2013 09:35:23 +0000 (11:35 +0200)]
dracut-install: make use of _cleanup_* macros
Harald Hoyer [Mon, 29 Apr 2013 09:34:26 +0000 (11:34 +0200)]
fips: do not fail immediatly after loading the crypto modules
Fail only if tcrypt insmod failed.
Harald Hoyer [Thu, 25 Apr 2013 19:16:03 +0000 (21:16 +0200)]
dracut.sh: do not preunlink for fips mode
just install prelink and the cache files
Harald Hoyer [Thu, 25 Apr 2013 17:44:01 +0000 (19:44 +0200)]
fixed fips mode
- preserve timestamps
- copy /lib*/hmaccalc files
- run sha512hmac after kernel module loading
- add more fips kernel modules
Harald Hoyer [Fri, 19 Apr 2013 13:08:16 +0000 (15:08 +0200)]
fixup
3be5d63c2f
either test or []
Harald Hoyer [Fri, 19 Apr 2013 13:00:20 +0000 (15:00 +0200)]
shutdown: redirect output to /dev/console only if it exists
Harald Hoyer [Thu, 18 Apr 2013 10:54:55 +0000 (12:54 +0200)]
dracut-install: error out, if ldd reports no execution permission
This turns off lazy resolving on noexec mounted tmp directories.
https://bugzilla.redhat.com/show_bug.cgi?id=953426
Harald Hoyer [Thu, 18 Apr 2013 10:54:30 +0000 (12:54 +0200)]
base/dracut-lib.sh: do not setdebug, if not in initramfs
Harald Hoyer [Tue, 16 Apr 2013 11:41:19 +0000 (13:41 +0200)]
Makefile: remove dracut-version.sh on clean
Harald Hoyer [Tue, 16 Apr 2013 11:38:16 +0000 (13:38 +0200)]
.gitignore: ignore more files