Javier Martinez Canillas
b39b8452d2
5?-dracut*.install: Allow scripts to install the initramfs in /boot dir
...
The GRUB 2 bootloaders expect the initrd to be installed in /boot instead
of /boot/$MACHINE_ID/$KERNEL_VERSION/{linux,initrd}, so if that directory
doesn't exists, install the initramfs images on the /boot directory.
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
7 years ago
Yu Watanabe
b71d162a7a
kernel-install: Skip to create initrd if /etc/machine-id is missing or empty
...
From systemd-234, kernel-install plugins are called even if /etc/machine-id
is missing or empty, and in that case BOOT_DIR_ABS is a fake directory.
So, let's skip to create initrd in that case.
8 years ago
Mike Gilbert
69395a528a
50-dracut.install: use /bin/bash shebang
...
This script utilizes several bash-specific constructs.
8 years ago
Harald Hoyer
a601870064
5?-dracut*.install: better parsing of /proc/cmdline
...
"read -r -d '' -a" does, what we want.
10 years ago
Harald Hoyer
8cd8820547
use cp --reflink=auto
...
saves some space, if the destination is on the same filesystem on some
filesystems
10 years ago
Dimitri John Ledkov
a7d3ad67c7
Support /usr/lib/kernel/cmdline fallback path for /etc/kernel/cmdline.
10 years ago
Harald Hoyer
967cc19ab1
remove all vim and emacs code format comments
11 years ago
Harald Hoyer
bc140a0b29
50-dracut.install: install pregenerated initrd
...
If there is an already pregenerated initrd at the same location as the
kernel install that and do not generate a new one.
11 years ago
Harald Hoyer
ccb8ce0403
50-dracut.install: fixed /proc/cmdline reading
...
and beautified the code a bit
11 years ago
Harald Hoyer
ffc68f357e
use ${var:+val} rather than ${var+val}
...
${var:+val} also catches var=""
12 years ago
Harald Hoyer
32bd2fbb4c
use "rm --" to guard against filenames beginning with "-"
12 years ago
Harald Hoyer
83bb0893ed
dracut.sh: Add --noimageifnotneeded parameter
...
Do not create an image in host-only mode, if no kernel driver is needed
and no $initdir/etc/cmdline/*.conf is generated.
12 years ago
Harald Hoyer
9dd9d81fc6
add 50-dracut.install
12 years ago