Harald Hoyer
ea3c4e8273
Add missing options to manpage and --help output
...
https://bugzilla.redhat.com/show_bug.cgi?id=948510
12 years ago
Harald Hoyer
6c6d805765
use systemd*dir variables everywhere
12 years ago
Harald Hoyer
cb8def95c4
dracut.sh: export systemdsystemconfdir
12 years ago
Harald Hoyer
78d1d4f86d
dracut.sh: turn off hostonly mode, if udev database is not found
12 years ago
Harald Hoyer
5bfa3b363a
dracut.sh: turn off host-only mode, if essential system filesystems not mounted
12 years ago
Harald Hoyer
02566acdd7
dracut.sh: remove temporary cpio output in trap
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
7d848c55a6
dracut.sh: add --regenerate-all
12 years ago
Harald Hoyer
dd5875499e
dracut.sh: add swap partitions to host-only setup
12 years ago
Harald Hoyer
d351541ee6
make host_fs_types a hashmap
...
This requires bash >= 4, but hash maps are so much more comfortable
12 years ago
Harald Hoyer
d008b6b89f
dracut.sh: move cleanup trap, just after mktemp
12 years ago
Harald Hoyer
cc2303001e
dracut.sh: add new default path to initramfs according to bootloader spec
...
see kernel-install(8) and
http://www.freedesktop.org/wiki/Specifications/BootLoaderSpec
12 years ago
Harald Hoyer
54e7d7c32d
dracut.sh: remove (default) marker in --help
12 years ago
Harald Hoyer
335bc217b3
dracut.sh: rename source_dirs_prio() to dropindirs_sort()
12 years ago
Lars R. Damerow
9a9c6e1256
dracut: write initramfs to temp file then move into place
...
We've been finding cases where multiple instances of dracut can be launched
simultaneously, resulting in a corrupted initramfs file. This patch makes
dracut write the initramfs to a new file, then move it into place atomically.
12 years ago
Harald Hoyer
a42b2b8133
introduce /usr/lib/dracut/dracut.conf.d/ drop-in directory
...
/usr/lib/dracut/dracut.conf.d/*.conf can be overwritten by the same
filenames in /etc/dracut.conf.d.
Packages should use /usr/lib/dracut/dracut.conf.d rather than
/etc/dracut.conf.d. /etc/dracut.conf.d belongs to the system
administrator.
12 years ago
Harald Hoyer
5db6ca5a4b
dracut: enable initramfs building without kernel modules
12 years ago
Harald Hoyer
3f54a83ca8
dracut.sh: make /var/log a symlink to /run/log
12 years ago
Harald Hoyer
19bab59c48
dracut.sh: reverting return value change
...
reverting _get_fs_type() return values of patch
c8d685c9d3
12 years ago
Harald Hoyer
c8d685c9d3
dracut-functions.sh: cope with optional field #7 in mountinfo
...
also handle fstab entries with LABEL=, UUID= and PARTUUID=
12 years ago
Colin Guthrie
c586b033a7
Extend 52f1b041
to allow devices to be specified in config files as well as cmdline.
...
This also changes the command line switch to be --add-device and the
config directive is set to add_device. This was chosen as device= in the
config file seems too generic and not quite as consistent with other
directives (i.e. drivers/add_drivers)
The --device command line is still supported but it should be considered
deprecated in favour of --add-device.
12 years ago
Harald Hoyer
2d9b156e9e
dracut.sh: do not strip signed kernel modules
...
https://bugzilla.redhat.com/show_bug.cgi?id=873796
12 years ago
Harald Hoyer
b26897fb60
dracut.sh: only 'warn' not 'error', if we don't strip
13 years ago
Harald Hoyer
636e5cd2d5
dracut.sh: only save $kernel_cmdline, if set
13 years ago
Harald Hoyer
404815eaf0
prelink and preunlink (for FIPS) in the initramfs
...
also hardlink before strip
13 years ago
Harald Hoyer
6c128565b1
strip initramfs binaries by default (not all for FIPS)
13 years ago
Harald Hoyer
d20fb951fa
add "--kernel-cmdline" and kernel_cmdline options for default parameters
13 years ago
Harald Hoyer
e1b48995c2
dracut.sh: create the initramfs non-world readable
13 years ago
Harald Hoyer
73088e46f7
moved the /etc/host_devs write out to 99base
...
also removed some left-over debugging code
13 years ago
dyoung@redhat.com
52f1b04183
Add a dracut option --device to bring up a device in initramfs
...
Kdump support dump to raw device which could be on top of complex storage
such as multipath and iscsi which are standalone dracut modules.
Add a --device option to dracut which will add the device to host_devs so
dracut can add the dependent modules automaticlly and enable them in initramfs.
--device will accept device node name as the param.
Signed-off-by: Dave Young <dyoung@redhat.com>
Tested-by: Chao Wang <chaowang@redhat.com>
13 years ago
dyoung@redhat.com
c4bb88715c
wait host devs in base module
...
each dev in host_devs[] should be waited in initqueue to make sure they
are oneline before initqueue finish.
Add a new wait_host_devs.sh in base module to make this a generic thing.
Because all the devs in fstab lines are also added to host_devs, so no need
do same wait in fstab-sys module anymore.
[v2->v3]: do not add slave devices to host_devs
wait for persistent dev name in initramfs
Signed-off-by: Dave Young <dyoung@redhat.com>
13 years ago
Harald Hoyer
506b219237
dracut.sh: create relative symlinks for /var/lock and /var/run
13 years ago
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
13 years ago
Harald Hoyer
bfd2e8c25f
dracut.sh: test if we can lazy resolve with ldd
13 years ago
Harald Hoyer
3e964eeb96
dracut.sh: put $drivers and $filesystems back in export
13 years ago
Harald Hoyer
aec9f902f0
kernel-modules/module-setup.sh: move "$drivers" "$filesystems" and "$add_drivers" to dracut.sh
13 years ago
Amadeusz Żołnowski
ff3953efe1
ro_mnt - option at build time to force ro mount of / and /usr
13 years ago
Harald Hoyer
472189da15
dracut.sh: add -N option for --no-hostonly
13 years ago
Harald Hoyer
e65caf3696
dracut: add option --kver=<kernel-version>
13 years ago
Harald Hoyer
98eb6d57df
dracut.sh: for --include copy also the symbolic links
13 years ago
Harald Hoyer
fbf658fece
dracut.sh: corrected error messages, if mktemp failed
13 years ago
Harald Hoyer
e09048aaf5
systemd: check, that --prefix= does not contain /run
...
systemd will mount /run before dracut has a chance to copy over the
original content.
13 years ago
Harald Hoyer
a421016671
dracut.sh: keep vim syntax highlighting happy
13 years ago
Harald Hoyer
ffa71b4afa
dracut.sh: use getopt to parse arguments
...
now we can put options and arguments anywhere we like.
e.g.
$ dracut test.img --force
13 years ago
Harald Hoyer
04d18f5587
add "--hardlink" "--nohardlink" options
13 years ago
Harald Hoyer
73575f11a9
dracut-functions.sh,dracut.sh: use xargs with "-r"
13 years ago
Harald Hoyer
998bf6e088
dracut.sh: do not lazy resolve "include" directories
13 years ago
Harald Hoyer
f4031e8a9a
move dracut-install to dracutbasedir
...
We do not want to install dracut-install to /usr/bin until all
interfaces are set to stone and the manpage is written. Until then the
tool is dracut internal.
13 years ago
Harald Hoyer
89d44e720b
Use /usr/bin/dracut-install if available
...
/usr/bin/dracut-install greatly improves initramfs creation speed
13 years ago
Harald Hoyer
70c6b773ca
dracut.sh, dracut-functions.sh: add dracut_kernel_post()
...
dracut_kernel_post() does lazy kernel module dependency installation,
depmod and cleans up temporary files
13 years ago