Georgi Georgiev
037070b547
Fix the kerncache parsing of CONFIG_LOCALVERSION
...
A couple of problems here.
1. CONFIG_LOCALVERSION was never added the kerncache.config.
2. Parsing of CONFIG_LOCALVERSION expects kernel .config style syntax.
For this point I opted for the extra space, to make the
kerncache.config syntax consistent. There is no good reason to even
keep the CONFIG_LOCALVERSION name.
11 years ago
Georgi Georgiev
a7d7711cb5
Fix a typo LCV -> LOV
11 years ago
Georgi Georgiev
a8de812595
NO_KERNEL_SOURCES left behind
...
This looks like a leftover from a141d71531
.
All occurrences of NO_KERNEL_SOURCES should have been replaced by
the negated KERNEL_SOURCES.
Though probably isTrue should be used for all boolean options, to avoid
confusion when setting them in the config file (some of them should be
set to 0 or 1, while others support yes/no/0/1/true/false).
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
Georgi Georgiev
2f2fdcb58f
tar refuses to extract into a non-existent directory
...
This helps if trying to use a new directory as the temporary directory.
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
49c4af162b
linuxrc: create /etc/ld.so.cache if it's not in the initramfs
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
65d6d36332
00-fsdev.sh: drop any reference to mdstart, no longer used nowadays
...
See Gentoo bug #494804
11 years ago
Fabio Erculiani
9097998cad
00-crypt.sh: only warn about missing cryptsetup if CRYPT_ROOTS or CRYPT_SWAPS is set
...
This fixes Gentoo bug #493818
11 years ago
Fabio Erculiani
8ae92b7601
linuxrc: fix /dev/shm mount, move it after /dev mount, add strictatime support to busybox
...
The busybox patch has been backported 1.21.1.
11 years ago
Fabio Erculiani
b566f1ed9e
linuxrc: mount /dev/shm with appropriate permissions, see Gentoo bug #493652
11 years ago
Fabio Erculiani
f545918a49
linuxrc: fix REAL_INIT setup in livecd mode
11 years ago
Fabio Erculiani
eefb85ffb3
gen_initramfs: fix copy_binaries for iscsistart, Gentoo bug #492704
11 years ago
Fabio Erculiani
93770cfff5
00-rootdev.sh: handle the case where init=/linuxrc and real_init= is not set
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
5e718d9ab3
00-livecd.sh: fix "docache" support, unfuck the whole code
...
docache support was broken since the Stone age. Not all the
loop types correctly supported it because it wasn't transparent
to them and required manual hackery. Now _setup_livecd_content
transparently configures LOOP_PATH if docache is enabled.
11 years ago
Fabio Erculiani
8df1f57e58
00-livecd.sh: drop old TODO
11 years ago
Fabio Erculiani
dc7d502990
00-livecd.sh: ${LOOPEXT} is never set, drop it
11 years ago
Fabio Erculiani
87ce8a9bec
00-rootdev.sh: fix typo in comment
11 years ago
Fabio Erculiani
ac5324d3f0
linuxrc: fix check against REAL_INIT and FAKE_INIT
...
Prioritize the latter (init=) if it's set and no real_init= is set.
This, while keeping backward compatibility, makes possible to
directly use init= to boot the preferred init system.
11 years ago
Fabio Erculiani
8dd6215099
00-rootdev.sh: fix zfs rootfs boot regression, see GitHub issue #10
11 years ago
Fabio Erculiani
43ac8e2126
00-zfs.sh: move zfs_member fstype info to a standalone function
11 years ago
Fabio Erculiani
c32856dd84
00-fsdev.sh: add warning about get_device_fstype() usage in ZFS scenarios
11 years ago
Fabio Erculiani
6d808e8257
00-zfs.sh: make is_zfs() public
11 years ago
Fabio Erculiani
8073752bec
Revert "00-rootdev.sh: look for ZFS=* instead of ZFS* in REAL_ROOT case"
...
This reverts commit d55306dc81
.
11 years ago
Fabio Erculiani
3a17a693af
modules_load: add Microsoft Hyper-V initramfs support through "dohyperv"
11 years ago
Fabio Erculiani
d55306dc81
00-rootdev.sh: look for ZFS=* instead of ZFS* in REAL_ROOT case
11 years ago
Fabio Erculiani
682c302fe6
00-zfs.sh: fix USE_ZFS variable check typo
11 years ago
Fabio Erculiani
61f704692c
00-fsdev.sh: sleep on multipath -v only if using mdev
11 years ago
Fabio Erculiani
b832cf7a95
00-crypt.sh: use find_real_device to resolve UUID= or LABEL= dev names
...
This reduces the likelihood of generating a very long string that
could trigger a cryptsetup log error:
log_err(NULL, _("DM-UUID for device %s was truncated.\n"), name);
11 years ago
Fabio Erculiani
3b2aa3077c
00-crypt.sh: call start_volumes instead of start_md_volumes
...
We must make sure that all the volume types (including dmraid,
which was missing) have a chance to start.
11 years ago
Fabio Erculiani
a73aefd936
Merge pull request #6 from t0b3/patch-2
...
Update 00-crypt.sh
11 years ago
Fabio Erculiani
5c53e92095
Merge pull request #7 from t0b3/patch-3
...
Update 00-crypt.sh
11 years ago
Fabio Erculiani
f898113225
Merge pull request #8 from t0b3/patch-4
...
Update 00-crypt.sh
11 years ago
Fabio Erculiani
c2942b953f
Merge pull request #5 from t0b3/patch-1
...
00-crypt.sh: move back to "luksOpen"
However, cryptsetup manpage is not reporting luks* commands anymore
11 years ago
t0b3
c9257fc9db
Update 00-crypt.sh
...
omnipresent use of CRYPTSETUP_BIN
11 years ago
t0b3
5f545abd91
Update 00-crypt.sh
...
input vars more compact
11 years ago
t0b3
4dcb7d2121
Update 00-crypt.sh
...
REAL_{ROOT,RESUME} value needs to be set for _open_luks to enable linking
11 years ago
t0b3
4cbc017937
Update 00-crypt.sh
...
fix typo rendering the system unbootable
11 years ago
Fabio Erculiani
daebb4a970
modules_load: add ohci-pci, fixes Sabayon bug #4396
11 years ago
Fabio Erculiani
748e991ecf
00-fsdev.sh: add _is_mdadm helper function
11 years ago
Fabio Erculiani
f92804c752
00-rootdev.sh: always use the blkid detected fstype unless rootfstype= is passed
11 years ago
Fabio Erculiani
a2f34d906b
00-crypt.sh: delay the initialization of md devices until the end of start_luks
...
This will make possible to avoid to create degraded md devices
11 years ago
Fabio Erculiani
451fac91b4
00-fsdev.sh: use more compact code in start_volumes
11 years ago
Fabio Erculiani
cd1cf77029
00-fsdev.sh: move md arrays initialization code to start_md_volumes
11 years ago
Fabio Erculiani
d5ebdb3e56
00-crypt.sh: drop stale comment
11 years ago
Fabio Erculiani
763daca7d5
00-crypt.sh: start_luks: remove bogus sleep 6 calls.
...
We expect to fix the issue at its root as soon as bugs come in.
11 years ago
Fabio Erculiani
9d8d7c0c07
genkernel: use udev instead of mdev by default
11 years ago
Fabio Erculiani
2d19fc6fc8
00-crypt.sh: do not remove ancestors of /mnt/key, that's just silly
11 years ago