Georgi Georgiev
517929fe87
Only skip the "ldconfig -r" step, which needs root privileges
...
Since we now have ldconfig which can run during the boot, make sure we
unconditionally copy all the other configuration files (ld.so.conf and
relatives), while only skipping the "cache" step.
11 years ago
Georgi Georgiev
00a83a5f57
Also detect "fakeroot"
11 years ago
Georgi Georgiev
b60ba28d19
ldconfig -r requires "root" (chroot) privileges
...
This would not do the right thing when running as a non-root user but
anyone running this as non-root should be aware that things could break.
11 years ago
Georgi Georgiev
90a394350d
LVM has read-only files that would prompt for deletion
...
This only happens when testing as a non-root user, but even so, it
doesn't hurt to make this less annoying.
11 years ago
Fabio Erculiani
99d1ae9d8a
gen_initramfs.sh: use realpath to ensure that udevdir files are grepped correctly
...
See Gentoo bug #495194
11 years ago
Fabio Erculiani
768333ed63
gen_initramfs: add /sbin/ldconfig to the initramfs
...
ldconfig will allow us to create ld.so.cache at runtime, if needed
11 years ago
Fabio Erculiani
eefb85ffb3
gen_initramfs: fix copy_binaries for iscsistart, Gentoo bug #492704
11 years ago
Fabio Erculiani
73d56597d5
gen_initramfs: make sure to die on mknod() failures
...
It is extremely important that the device nodes end up into the
initramfs or the whole file will be unusable.
11 years ago
Fabio Erculiani
93f04c508b
gen_initramfs.sh: add /sbin/losetup symlink
...
This will make possible to remove hardcoded /dev/loop0 paths
11 years ago
Fabio Erculiani
9c919f2954
gen_initramfs: drop hardcoded libply-splash-core.so.2 path
11 years ago
Fabio Erculiani
8f4c854059
gen_initramfs: libply-splash-core.so.* moved to /usr/lib
...
This is still part of the ridiculous, pointless and unsafe plymouth
move to /usr
11 years ago
Fabio Erculiani
3ba9860667
Revert "gen_initramfs: libply-splash-core.so.* moved to /usr/lib"
...
This reverts commit bdf9e5a180
.
11 years ago
Fabio Erculiani
bdf9e5a180
gen_initramfs: libply-splash-core.so.* moved to /usr/lib
...
This is still part of the ridiculous, pointless and unsafe plymouth
move to /usr
11 years ago
Fabio Erculiani
368282d9ec
initrd.defaults, gen_initramfs: /bin/plymouth moved to /usr/bin
...
And this is just ridiculous!
11 years ago
Fabio Erculiani
25cd48cd6f
initrd.defaults, gen_initramfs: plymouthd is actually in /usr/sbin, bug #487800
11 years ago
Fabio Erculiani
9aec1ae65e
gen_initramfs: use /usr/bin/plymouthd if /sbin/plymouthd is not available
11 years ago
Fabio Erculiani
576785d412
gen_initramfs: fix typo in udevadm_bin condition
11 years ago
Fabio Erculiani
a095dfcf7a
gen_initramfs: use /usr/bin/udevadm if /bin/udevadm is not available
11 years ago
Fabio Erculiani
2a4f4b0901
gen_initramfs: fix here-document (EOF handling)
11 years ago
Fabio Erculiani
a6979a5403
gen_initramfs: use systemd-udevd if udevd is not available
...
This fixes systemd-207 support and bug #485094
11 years ago
Fabio Erculiani
6b29188ee3
gen_initramfs: provide /bin/udhcpc
12 years ago
Fabio Erculiani
2af62f0189
gen_initramfs: provide /bin/dmesg as well
12 years ago
Fabio Erculiani
90983b4fd2
initrd.scripts: move splash functions to a separate file
...
Start to make the genkernel code a bit modular. Also add initrd.d
support to gen_initramfs.sh
12 years ago
Fabio Erculiani
ce1e10241b
genkernel: migrate ALL the code to 4-spaces tabs
...
\t must die!
12 years ago
Fabio Erculiani
12af5dfd3a
gen_initramfs, initrd.scripts: migrate to /sbin/btrfs
...
btrfsctl is deprecated.
12 years ago
Fabio Erculiani
8c839788ff
gen_initramfs: do not copy mkfs.btrfs and btrfsck to initramfs
12 years ago
Fabio Erculiani
26ba1da86b
gen_initramfs: drop --disklabel, always copy blkid to initramfs
...
blkid will be used to detect partition types as well.
12 years ago
Fabio Erculiani
4412cec9b5
gen_initramfs: drop unnecessary if condition in append_blkid
12 years ago
Fabio Erculiani
7b5a70a29e
gen_initramfs: embed btrfs-progs utils in initramfs
...
This patch comes from Dennis 'dlan' Lan through bug #481116 .
12 years ago
Fabio Erculiani
55240f15e3
gen_initramfs: de-hardcode the last /lib/udev reference
...
Thanks to Martin Wegner for the original patch, I just cleaned it
up a bit and committed.
12 years ago
Fabio Erculiani
9af1f8788c
gen_initramfs: do not hardcode udevdir but use pkg-config
...
Thanks to Martin Wegner for the original patch, I just cleaned it
up a bit and committed.
12 years ago
Fabio Erculiani
4fa6686515
initramfs: use busybox mountpoint rather than copying /bin/mountpoint
...
/bin/mountpoint was copied to the initramfs only when --multipath
is enabled. Now, I'm not sure why we need the full blown mountpoint
when there is busybox mountpoint which exposes the same cmdline
interface. Furthermore, bb mountpoint can be used to determine if
a filesystem is already mounted.
12 years ago
Fabio Erculiani
33bbaf3ed6
gen_initramfs: fix typo in firmware copy
12 years ago
Fabio Erculiani
6e7490371b
gen_initramfs: copy firmware files together with drm modules
12 years ago
Fabio Erculiani
dd1601f13b
gen_initramfs: append drm drivers to initramfs if plymouth is enabled
...
Plymouth activates the drm subsystem through udev in order to setup
its splash screen.
12 years ago
Fabio Erculiani
3e6b4641db
gen_initramfs: append_udev, add 40-gentoo.rules to the ramfs if exists
12 years ago
Fabio Erculiani
db68bf5d5a
Make sure to create /dev/shm with 1777, bug #476278
...
However, this seems to affect only a small set of scenarios, since
I don't have any problems here with ~arch openrc and systemd when
using udev.
12 years ago
Fabio Erculiani
af182ed72a
Move gpg executable to /usr/bin/gpg, bug #476276
...
The gpg executable is not at /sbin/gpg, but rather at /usr/bin/gpg
12 years ago
Richard Yao
363d10ae48
Remove duplicate files from initramfs
...
genkernel's initramfs image is built incrementally by appending to the
cpio file. The introduction of copy_binaries resulted in copying
libraries from the host system, which causes the cpio to include certain
libraries multiple times whenever different stages depended upon the
same library. We address this by extracting the cpio to a temporary
directory and then compressing it again to "finalize" it. The extraction
eliminates the duplicate files.
This makes generated initramfs images slightly smaller and in theory,
should make the initramfs load slightly faster.
Signed-off-by: Richard Yao <ryao@gentoo.org>
Conflicts:
gen_initramfs.sh
12 years ago
Richard Yao
2741bae03a
Eliminate warnings about missing ZFS files
...
zpool.cache and zdev.conf are optional files, so instead of warning when
they are missing, we print a message when they are copied.
Signed-off-by: Richard Yao <ryao@gentoo.org>
12 years ago
Richard Yao
2f9f31a7c0
Silence cp error when optional ZFS files are unavailable
...
Users were seeing the following error message printed:
cp: cannot stat ‘/etc/zfs/zdev.conf’: No such file or directory
Both zdev.conf and zpool.cache are optional files. We print a warning
when they are absent, but cp printed its own error in addition to our
warning. We suppress that.
Signed-off-by: Richard Yao <ryao@gentoo.org>
12 years ago
Fabio Erculiani
138e317c1e
gen_initramfs: add support for thin provisioned lvm volumes
12 years ago
Fabio Erculiani
a5e497324d
gen_initramfs: append /etc/ld.so.conf{.d/*,} and /etc/ld.so.cache
...
Some executables (namely: udevadm) may link against libraries in
non-standard paths. For this reason, and as dracut does, we must
copy /etc/ld.so.conf{.d/*,} over and generate a custom ld.so.cache
file.
12 years ago
Fabio Erculiani
f8b1ea1186
Add /etc/modprobe.d/blacklist.conf to the initramfs if found
12 years ago
Fabio Erculiani
06af416264
Kill trailing whitespaces!!!!!
12 years ago
Fabio Erculiani
734ab6d239
Merge branch 'master' into cleanup-cruft
...
Conflicts:
gen_initramfs.sh
12 years ago
Fabio Erculiani
08e7dbdfe5
Drop old and no longer working /etc/module_options support
12 years ago
Fabio Erculiani
c29e0ef023
Complete Plymouth integration. Fix the last set of minor bugs
12 years ago
Fabio Erculiani
fb6fa7903d
Make plymouth ask-for-password work as expected
12 years ago
Fabio Erculiani
bea8085444
Introduce initial support to Plymouth
12 years ago