Sebastian Pipping
773a8801d6
Use actual kernel config for check of available compression methods (bug #436820 )
12 years ago
Rick Farina
255c8e8498
Make e2fsprogs optional (and off by default)
12 years ago
Sebastian Pipping
c9a61ce2c7
Append e2fsck and mke2fs to initramfs
...
Original patch by Rick Farina
12 years ago
Richard Yao
908a463e07
Support module options set in /etc/module.d, amend cmdline options patch
13 years ago
Sebastian Pipping
15a33f3d28
Catch case with no initramfs compression supported by kernel (bug #423847 )
13 years ago
Sebastian Pipping
7045223180
Fix detection of initramfs compression with bzip2 as best candidate
13 years ago
Sebastian Pipping
88892f5df2
Use proper ${KERNEL_CONFIG} rather than ${KERNEL_DIR}/.config as input
13 years ago
Sebastian Pipping
5153192ca2
Use blkid from system's util-linux rather than compiling e2fsprogs ourselves
13 years ago
Sebastian Pipping
419f1cee8b
Be verbose bout files being added to initramfs for --loglevel=2 and above
13 years ago
Sebastian Pipping
1ac90970d6
Revert verbosity of internals (a debugging leftover)
13 years ago
Sebastian Pipping
9743f8b39c
Stop removing lvm/dmsetup from the initramfs (bug #415697 )
13 years ago
Robin H. Johnson
b2caeadca2
lddtree call must be outside the for loop.
13 years ago
Robin H. Johnson
33f49ec6ee
gen_initramfs: Use CC0 instead of public domain for copy_binaries to cover French jurisdiction concerns.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Sebastian Pipping
d31d1e53ff
Adjust licensing policy on copy_binaries() after a chat with robbat2
13 years ago
Sebastian Pipping
f1e3cd9290
Merge branch 'cryptsetup'
...
Conflicts:
ChangeLog
13 years ago
Sebastian Pipping
0a23f1883f
Make sure that we can use our own copy_binaries in the future
13 years ago
Sebastian Pipping
23ef506351
Support a non-static cryptsetup binary (bug #409277 )
...
.. by making use of copy_binaries
13 years ago
Sebastian Pipping
9e947f4416
Add error detection to copy_binaries
13 years ago
Robin H. Johnson
2828226b6f
gen_initramfs: Release the copy_binaries function as public domain.
...
The copy_binaries function is explicitly released into the public domain to
encourage wide adoption and re-use.
This is to enable use in some cases of BSD and other licensing, and
specifically avoiding the need to be party to any contributor agreements.
Additionally, the code could be considered of trivial length in some regions.
Written by:
- Robin H. Johnson <robbat2@gentoo.org> (complete rewrite)
- Richard Yao <ryao@cs.stonybrook.edu> (original concept)
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Robin H. Johnson
9f36ecc125
Handle other possible paths for LVM.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Sebastian Pipping
a3cc35f063
Untar keymaps
13 years ago
Sebastian Pipping
66e5a24704
Add "fastest" to supported initrd compressions
13 years ago
Sebastian Pipping
10a2bde198
Refactor code selecting best available initrd compression
13 years ago
Sebastian Pipping
0da4543b8a
Support comression "lzop" (not just "lzo") as wrongly advertised by comments in genkernel.conf before
13 years ago
Sebastian Pipping
b7efd3d658
Be more helpful when requested compression is not available
13 years ago
Sebastian Pipping
cfca839587
Error out on unknown initrd compression, reported by Peter Gantner (bug #411197 )
13 years ago
Sebastian Pipping
c0ed5530a5
Fix initrd compression "gzip", reported by Peter Gantner (bug #411197 )
13 years ago
Sebastian Pipping
7ee9306c7d
Fail hard on LUKS inclusion error (bug #409277 ), advise about sys-fs/cryptsetup[static], drop support for cryptsetup binary from /bin/
13 years ago
Robin H. Johnson
265363f79d
Fix dmraid building with LVM/device-mapper
...
dmraid is entirely broken if you try to use the system static
LVM/device-mapper. Instead, always build our own LVM2 for the initramfs,
using DESTDIR for cleaner install. Dead code paths for old LVM2 build
not removed yet until more users have tested.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Robin H. Johnson
1240654461
Bugfixes in new code branches that I didn't test fully.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Robin H. Johnson
94dc288487
Customizable initramfs compression based on Pentoo genkernel fork
...
This implements customizable initramfs compression, based on the Pentoo
genkernel fork (SVN revs r2142, r2145, by Jens Pranaitis
<jens@chaox.net>).
New configuration option COMPRESS_INITRD_TYPE to allow manual selection,
whereas the Pentoo fork provided auto-selection based on what was
available in the kernel configuration. Auto-selection is used by
default, and is available with the argument of 'best' to the new option.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Richard Yao
fc98fa9d89
Implement ZFS Support
...
This provides ZFS support, to go with the sys-fs/zfs package.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> (cleanups)
13 years ago
Robin H. Johnson
5f4d31dfd0
copy_binaries, multipath: refactor for ease of use and readability.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Richard Yao
a871576d17
Fix hardcoded paths in multipath support
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Richard Yao
1079122ea0
copy_binaries: utility function to pick up a binary and needed libs
...
The existing multipath functionality manually picks up a binary and lots
of needed libraries manually, and sometimes misses libraries if the
binary was linked against something else.
Use lddtree from app-misc/pax-utils to get all libraries with the
binary. The only ones that will be missed are those that are dlopen()ed.
cpio is used for copying to preserve directory structure.
lddtree usage replaces a larger manual function from calling ldd, that
was also vulnerable to injections.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
(commit message rewritten)
13 years ago
Richard Yao
73520cb6b2
Implement --[no-]compress-initramfs option to complement --[no-]integrated-initramfs
...
When using an integrated initramfs (including in kernel during build),
it's better NOT to compress the initramfs, as the kernel build process
will then be re-compressing it. This can provide space savings on disk
as well as potential time & memory savings (one less decompress pass is
needed before the kernel can use the initramfs).
This functionality was previously available in the undocumented
COMPRESS_INITRD variable.
Code-by: Richard Yao <ryao@cs.stonybrook.edu>
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
(commit message rewritten).
13 years ago
Robin H. Johnson
14c61e729d
Add a few more directories and initial device nodes to the initramfs, and improve datestamp. Based on development by WilliamH for initramfs /usr mounting.
...
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Robin H. Johnson
a141d71531
Improve option handling.
...
Provide real boolean commandline options for options that were
previously only available as booleans in the config, so that they can be
enable in configuration and overridden to disable on the commandline.
Remove negation on options: NOINSTALL, NORAMDISKMODULES,
NO_KERNEL_SOURCES.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
13 years ago
Fabio Erculiani
1e50bd01d2
trivial: cleanup code, drop whitespaces and some more cruft
14 years ago
Fabio Erculiani
7fef86581a
dmraid requires dmsetup to assign UUID to discovered RAID volumes, close bug #382555
14 years ago
Sebastian Pipping
691d7aad4d
No longer copy /lib/libsysfs*so* for multipath-tools (bug #300841 , bug #377709 )
14 years ago
Sebastian Pipping
bf0cad6a30
Remove support for sys-fs/evms, as it was removed from Gentoo (bug #372423 )
14 years ago
Peter Hjalmarsson
1cf3de853a
Remove "--slowusb" as it is enabled by default. Also document "noslowusb".
14 years ago
Peter Hjalmarsson
7ae5e10474
Introducing MDADM_CONFIG
...
Make it possible to choose a custom mdadm.conf for your ramdisk.
If not set, no mdadm.conf will be copied, and ramdisk will auto-detect.
This also fixes a regression where genkernel always tried to copy
/etc/mdadm.conf to the ramdisk, failing if it was non-existant.
14 years ago
Sebastian Pipping
81e41d541d
Put blkid of e2fsprogs into /sbin, not /bin (bug #352746 )
14 years ago
Sebastian Pipping
b1b6157254
mdadm: Fix copying of mdadm/mdmon to the initramfs (bug #352496 )
14 years ago
Sebastian Pipping
30f88577f3
mdadm: Implement support for mdmon to static binary
...
Without this patch a static /sbin/mdadm binary results in an initramfs without mdmon
14 years ago
Matthias Dahl
daed0ccebb
use mdadm instead of bundled stripped down mdassemble (v2)
...
mdassemble can't handle newer metadata formats and fails for partitioned
arrays, among other things.
This...
- replaces the bundled mdassemble with proper support for mdadm
- fixes raid autodetection/assemble when no mdadm.conf is available
- fixes a compilation failure for newer mdadm versions
Tested w/ genkernel 3.4.10.907 and mdadm 3.1.3.
14 years ago
Sebastian Pipping
3c3765558b
Add more detail to some LVM log messages
14 years ago
dacook
1d706752f1
GPG initramfs append
...
Add function/handling to actually add the GPG binary to the initramfs
14 years ago
Sebastian Pipping
fcdece1b0e
Check return codes of cpio (lessen from bug #246370 )
14 years ago
Sebastian Pipping
398daeb3b3
Catch errors from append_* (lesson from bug #246370 )
14 years ago
Sebastian Pipping
0e37a5fba1
Allow configuring the list of busybox applets (bug #326593 )
14 years ago
Sebastian Pipping
532dd7a387
Review and fix some -eq and -ne conditionals
...
This fixes "sh: bad number" with busybox 1.18.1 during activation of mdev.
14 years ago
Andrew Gaffney
8dcecef058
use a symlink instead of a hardlink for busybox utils (for Gentoo bug #246370 )
15 years ago
Andrew Gaffney
8b8cbb1978
Make sure to change back to existant directory before removing the current directory for Gentoo bug #291794
15 years ago
Robin H. Johnson
b05877d052
/etc/scsi_id.config does not exist by default in newer udev, but is still respected by utils if created, so do not error.
15 years ago
craig
97b4dc26e2
Improve naming of bootflags, added support for: port, target portal, username, password, username_in, password_in, debug
15 years ago
craig
18d9c84402
Merge branch 'master' of git://git.wolf31o2.org/projs/genkernel
16 years ago
tsunam
98831e77ba
fixing the libaio search as its a singular element not part of a multipart search
16 years ago
tsunam
494f9c1d7b
Should have all the proper libraries now for multipath for Gentoo bug #284592
16 years ago
tsunam
5539d25534
Updating some multipath code from Gentoo bug #284589
16 years ago
craig
5019ff506f
Merge branch 'master' of git://git.wolf31o2.org/projs/genkernel
16 years ago
Chris Gianelloni
35258a703f
Adding Id header.
16 years ago
Andrew Gaffney
229d8ef4f1
Apply patch for Gentoo bug #276753 for new lvm.static binary
16 years ago
craig
cac66e0970
iSCSI patch for genkernel
16 years ago
Andrew Gaffney
109770b762
Clean up append_multipath() code to copy files in a loop and report file that failed to copy
16 years ago
Andrew Gaffney
81b4ff2516
Apply patch from robbat2 to fix whitespace breakage in multipath code
16 years ago
Andrew Gaffney
f446ceb0e9
Modify append_data to die on 0 arguments and check arg 2 with isTrue(). Based on a patch from robbat2
16 years ago
Joshua Jackson
6bcbbb1b45
Die messages for multipath added
16 years ago
Joshua Jackson
08b4c4a2fc
adding multipath to append_data
16 years ago
Joshua Jackson
4b6c236ccc
initram based related multipath stuff added
...
believe this should be all that is needed
16 years ago
Chris Gianelloni
20f2b57e95
Actually setting permissions. It helps if one remembers to 'git add' before doing their commit.
16 years ago
Andrew Gaffney
575c898ef7
Use : as a regex separator instead of / since REAL_ROOT will have / in it
16 years ago
Andrew Gaffney
001c5d1bee
Create /sbin directory in append_luks for bug #250330
16 years ago
Andrew Gaffney
a0e576e3a7
missing }
16 years ago
Andrew Gaffney
8bc0328be8
Move udhcpc's script to default location
16 years ago
Andrew Gaffney
462e35fe87
Add --real-root=<foo> parameter to specify a default for real_root= in the initramfs for gentoo bug #249783
16 years ago
Andrew Gaffney
899fe9895c
s/aux/luks/ for gentoo bug #250330
16 years ago
Andrew Gaffney
f82aebc40c
Move all netboot logic from catalyst into gk
16 years ago
Andrew Gaffney
967899176d
Break apart cryptsetup stuff into separate append_luks() and make append_auxillary() dependent on ${BUSYBOX} for gentoo bug #247052
16 years ago
Andrew Gaffney
8fab72fa21
Only append unionfs_fuse stuff if UNIONFS is set
16 years ago
Andrew Gaffney
fd24098f08
Add fuse to MODULES_FS
...
Remove direct calls to compile_fuse() and append_fuse()
Disable bincache for fuse, since we don't need any files at runtime from it
16 years ago
agaffney
b116df3c98
Make sure that /sbin/unionfs is +x
16 years ago
agaffney
4123ac396c
Correct unionfs-fuse bincache path and clean up debugging code
16 years ago
agaffney
28a88bc953
Add append_fuse() and append_unionfs_fuse() functions
16 years ago
agaffney
ea695cec24
Only append splash portion to initramfs if SPLASH is set
17 years ago
Chris Gianelloni
d5b1e6a985
Removed all references to an initrd and renamed most initr{d,amfs} stuff to simply 'ramdisk' to simplify things for the future.
17 years ago
Chris Gianelloni
1ffb37f09c
Moving files from generic to defaults, since they are the defaults used globally.
17 years ago
Andrew Gaffney
f489b904ad
Stick CONFIG_INITRAMFS_ROOT_GID in the .config, too
...
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@651 67a159dc-881f-0410-a524-ba9dfbe2cb84
17 years ago
Andrew Gaffney
fb88e10ff6
Remove existing CONFIG_INITRAMFS_SOURCE line and write new one as well as CONFIG_INITRAMFS_ROOT_UID line
...
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@650 67a159dc-881f-0410-a524-ba9dfbe2cb84
17 years ago
Andrew Gaffney
af3fd101f0
Change sed delimeter
...
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@649 67a159dc-881f-0410-a524-ba9dfbe2cb84
17 years ago
Andrew Gaffney
0612894e1b
We should edit the copy of the kconfig instead of the source file
...
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@648 67a159dc-881f-0410-a524-ba9dfbe2cb84
17 years ago
Andrew Gaffney
5fcaaea2f8
Instead of copying the initramfs into the kernel tree, we now sed the kconfig to point CONFIG_INITRAMFS_SOURCE to the generated image
...
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@647 67a159dc-881f-0410-a524-ba9dfbe2cb84
17 years ago
Andrew Gaffney
d1313f5ecc
Change the location we copy the intiramfs to for integrated initramfs
...
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@644 67a159dc-881f-0410-a524-ba9dfbe2cb84
17 years ago
Andrew Gaffney
d176b8c104
Get rid of the ENABLE_PEGASOS_HACKS hacks
...
Add INTEGRATED_INITRAMFS option to optionally insert the generated initramfs directly into the kernel image
Change default build order to build the kernel last to facilitate the INTEGRATED_INITRAMFS option
Add GENZIMAGE option and change various checks from ENABLE_PEGASOS_HACKS to GENZIMAGE
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@631 67a159dc-881f-0410-a524-ba9dfbe2cb84
17 years ago
Andrew Gaffney
1664faa9df
Argh...Changing the right line helps
...
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@630 67a159dc-881f-0410-a524-ba9dfbe2cb84
17 years ago
Andrew Gaffney
ee9a94f313
Change into initramfs-firmware-temp/ instead of initramfs-firmware-temp/lib/firmware/ before doing cpio
...
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@629 67a159dc-881f-0410-a524-ba9dfbe2cb84
17 years ago
Andrew Gaffney
565bb21a48
Change to new temp directory so the firmware gets copied to the right place
...
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@627 67a159dc-881f-0410-a524-ba9dfbe2cb84
17 years ago
Andrew Gaffney
b4fd892e57
Copy with -L so we get the file instead of the symlink
...
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@626 67a159dc-881f-0410-a524-ba9dfbe2cb84
17 years ago