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
Harald Hoyer
26c231f13b
dracut.sh: set $initdir early before sourcing dracut-functions.sh
13 years ago
Harald Hoyer
d8aeb3a72a
dracut.sh, dracut-functions.sh: do lazy kernel module dep resolving
...
First, we just install the kernel module and keep track, what we
installed. At the very end, call modprobe and modinfo for firmwares to
resolve all kernel module dependencies. This speeds up image creation,
because we can call modprobe and modinfo with many modules.
13 years ago
Harald Hoyer
ad200fbc8c
dracut.sh: do not copy devices nodes, mknod them
13 years ago
Harald Hoyer
69b35075f3
dracut.sh: speedup "strip"
13 years ago
Harald Hoyer
8d95b8b338
Set some global variables in dracut-functions.sh
13 years ago
Harald Hoyer
7abd426438
fixed instmods() return code and set pipefail globally
13 years ago
Harald Hoyer
f79e587cf3
dracut.sh: unset some variables
13 years ago
Harald Hoyer
1d2c070071
dracut.sh: output unknown argument
13 years ago
Harald Hoyer
43fed15129
dracut.sh: mkdir $initdir/lib/dracut
13 years ago
Harald Hoyer
d2a9c4a8e7
dracut.sh: mkdir of $libdirs at then end
13 years ago
Harald Hoyer
fe1484f3db
modules are now only handled with /sys/modules and modules.dep
...
No more "find" and /proc/modules checking. We now rely entirely on
depmod and modules.dep
13 years ago
Harald Hoyer
d161561290
make udevdir systemdutildir systemdsystemunitdir global vars
...
your distribution should ship those settings in
/etc/dracut.conf.d/01-distro.conf
see dracut.conf.d/fedora.conf.example
13 years ago
Harald Hoyer
d77540c8e4
get rid of libdir and usrlibdir
13 years ago
Harald Hoyer
2614421601
dracut.sh: precopy some essential device nodes
13 years ago
Harald Hoyer
01bbe8311a
dracut.sh: do not rely on the presence of lib64, check with ldd
13 years ago
Harald Hoyer
dbf8f6ba0e
add dracut-version.sh
13 years ago
Dave Young
ec3c59518d
add option --printsize
...
Add --printsize for measuring module installed size to initramfs
Signed-off-by: Dave Young <dyoung@redhat.com>
13 years ago
Cong Wang
bd4be59fb2
check install files passed by cmdline
...
We should not trust cmdline passed by users, always
check the install files passed from cmdline. This restores
the old behaviour which was changed by:
commit c6c6a08850
Author: Harald Hoyer <harald@redhat.com>
Date: Tue Feb 7 18:26:30 2012 +0100
add "install_items" to dracut.conf
Reported-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Harald Hoyer <harald@redhat.com>
13 years ago
Cong Wang
a6d3be9dd5
check kernel module existance
...
This patch adds check of kernel module existance and
propagate errors to upper callers.
In case of break other callers of instmods(), this patch
adds an option '-c' to it, only when "-c" is specified
we fail, otherwise, errors are ignored.
Reported-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Harald Hoyer <harald@redhat.com>
13 years ago
Harald Hoyer
f2d887d7d5
dracut.sh: install var/run and var/lock
13 years ago
Harald Hoyer
0a35a80b93
dracut.sh: log installed modules to $initdir/lib/dracut/modules.txt
13 years ago
Jon Ander Hernandez
c9143a63fe
Debian multiarch support
...
Another solution could be searching in directories found at
/etc/ld.so.conf.d/*.conf or adding a new parameter. Here is a patch
which adds a new --libdirs parameter, and also a new inst_libdir_file
function which will try to expand metacharacters on each lib
directory:
inst_libdir_file "libdevmapper-event-lvm*.so"
13 years ago
Harald Hoyer
31b6f4a3ae
dracut.sh:_get_fs_type() readlink devices to avoid dups
13 years ago
Harald Hoyer
f1354b8af9
fstab-sys: also include the module, if --add-fstab was specified
...
also fixup the logic what and when to mount.
first initramfs/etc/fstab is mounted
$NEWROOT/etc/fstab.sys takes precendence over initramfs/etc/fstab.sys
13 years ago
Amadeusz Żołnowski
882c4c5a48
add --tmpdir option to cmd line args and tmpdir to config file
...
Default temporary directory used by Dracut is /var/tmp, but users might
want to change it to /tmp.
13 years ago
Harald Hoyer
cb74b38247
dracut.sh: add "--no-hostonly" option
13 years ago
Harald Hoyer
02aa795514
remove --ctty
13 years ago
Harald Hoyer
4fed3ddf16
add "initqueue/*" to hookdirs and create them in dracut itsself
...
now we can just use
inst_hook initqueue/settled 99 "$moddir/pollcdrom.sh"
13 years ago
Harald Hoyer
379c34d2cf
dracut.sh/dracut-functions.sh: use a marker-dir for kernel modules
...
use "$initdir/.kernelmodseen" to mark kernel modules, which we already
handled with install_kmod_with_fw()
13 years ago
Harald Hoyer
d433da4473
dracut.sh: first install /usr dirs, then toplevel
...
This saves some checks in inst_dir.
13 years ago
Harald Hoyer
34248c926c
change omit_drivers to support regexp expressions
13 years ago
Harald Hoyer
14c47b0ee4
dracut.sh: do not install some files in installkernel
...
/etc/cmdline.d
/etc/fstab
13 years ago
Harald Hoyer
3335ed0ef4
dracut.sh: skip symlink dirs for prelink unlink
13 years ago
Harald Hoyer
552ecca6db
Renamed all shell scripts to *.sh
13 years ago
Harald Hoyer
fcbcb2521c
dracut: add "--omit-driver"
13 years ago
Harald Hoyer
7b2d3d995c
dracut: honor binaries in sbin first
13 years ago
Harald Hoyer
68910ba4a5
dracut: setup clean PATH w/o existing one
13 years ago
Harald Hoyer
c6c6a08850
add "install_items" to dracut.conf
13 years ago