aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Improve network support on new kernelskernel-configRichard Yao2014-08-251-62/+206
| | | | Signed-off-by: Richard Yao <ryao@gentoo.org>
* More config customizationRichard Yao2014-08-182-0/+11
| | | | Signed-off-by: Richard Yao <ryao@gentoo.org>
* Customize configsRichard Yao2014-08-182-21/+70
| | | | Signed-off-by: Richard Yao <ryao@gentoo.org>
* Initial kernel config infrastructure (WIP)Richard Yao2014-08-1718-2/+4906
| | | | | | | | The merge.pl script and initial configuration files for ppc, ppc64 x86 and x86_64 are from RHEL6. They will be replaced as development progresses. Signed-off-by: Richard Yao <ryao@gentoo.org>
* Bump version to 3.4.51.2v3.4.51.2old_masterRichard Yao2014-08-171-1/+1
| | | | Signed-off-by: Richard Yao <ryao@gentoo.org>
* Enable sensors for K10 and K15h families in default x86/x86_64 configs, bug ↵Richard Yao2014-08-172-1/+4
| | | | | | #508362 Signed-off-by: Richard Yao <ryao@gentoo.org>
* Enable CONFIG_AUDIT=y on almost all architecturesRichard Yao2014-08-1613-13/+13
| | | | | | | | | | | | | CONFIG_AUDIT is already enabled on the most common architectures. It is ancient, yet it is required by SELinux. Lets enable it on all architectures for SELinux compatibility. It is not clear that ./arch/ppc64/kernel-2.6-pSeries and ./arch/ppc64/kernel-2.6.g5 even still work. I am omitting them from this commit because it is not clear to me that they even still work. Someone with appropriate hardware will need to update the config file(s). Signed-off-by: Richard Yao <ryao@gentoo.org>
* Include CONFIG_FHANDLE=y in default kernel config, bug #519298Richard Yao2014-08-1615-0/+15
| | | | | | | Recent versions of systemd-udev require CONFIG_FHANDLE=y and provide no fallback for kernels that lack it. Signed-off-by: Richard Yao <ryao@gentoo.org>
* Bump version to 3.4.51.1v3.4.51.1Richard Yao2014-08-121-1/+1
| | | | Signed-off-by: Richard Yao <ryao@gentoo.org>
* Remove mpath_prio_* and devmap_name from cp command, bug #468760Ian Stakenvicius2014-08-111-1/+1
| | | | Signed-off-by: Richard Yao <ryao@gentoo.org>
* Bump version to 3.4.51v3.4.51Robin H. Johnson2014-07-151-1/+1
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Bug #468760: mpath_prio_* tools needed sometimes. Patch by Ian Stakenvicius ↵Robin H. Johnson2014-07-151-0/+7
| | | | | | <axs@gentoo.org>. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* multipath needs to be autoloaded with domultipath, ditto dozfs => zfs.Robin H. Johnson2014-07-151-1/+4
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Add support for more nic drivers to netboot - forgot to add x86_64 config.Jorge Manuel B. S. Vicetto (jmbsvicetto)2014-06-251-1/+1
| | | | Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
* Add support for more nic drivers to netboot.Jorge Manuel B. S. Vicetto (jmbsvicetto)2014-06-251-1/+1
| | | | Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
* gen_package: packaged kernel/initramfs name fixesv3.4.50Robin H. Johnson2014-06-231-5/+18
| | | | | | | | | | | | | | | | Previous commit 76e801c8 did not actually go far enough. The existing install from kerncache code that is normally used with passing --install used a form of kernel-${KNAME}-${ARCH}-${KV}. Instead of just the kernel-${ARCH}-${KV} we were using in commit 76e801c8, or kernel-${KV} that we used before that, let's use the same naming per the regular path. Also add safety checks that the kernels exist, as you could get an empty tarball otherwise! Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* gen_cmdline: fix pkg path getting stuff deletedRobin H. Johnson2014-06-231-0/+3
| | | | | | | | | | If you pass --minkernpackage=X, --modulespackage=X or --kerncache=X with a relative path, then it's creates the output file in a temporary working dir that is later removed during cleanup. Resolve the paths during argument parsing to prevent this. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* gen_package: print full paths to pkgs/cache outputRobin H. Johnson2014-06-231-3/+3
| | | | | | | | The files are not created in the PWD when genkernel run without specifying absolute paths for those arguments and I need to debug where they are actually going. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* genkernel: Bump version.Robin H. Johnson2014-06-231-1/+1
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* gen_package: Log where the kern/mod/cache files goRobin H. Johnson2014-06-231-0/+3
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* genkernel.conf: DISTDIR in /var/cache badRobin H. Johnson2014-06-231-1/+1
| | | | | | | Move DISTDIR to /usr/share/genkernel/distfiles: /var/cache might be on tmpfs and wiped each boot. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Whitepace.Jorge Manuel B. S. Vicetto (jmbsvicetto)2014-06-226-21/+21
| | | | Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
* Make gen_minkernpackage use the same kernel naming as the normal path ↵Robin H. Johnson2014-06-211-2/+2
| | | | | | (kerncache). Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Bump version to 3.4.49.2v3.4.49.2Robin H. Johnson2014-05-311-1/+1
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Bug #461828: CONFIG_EVENT_HELPER should now be empty by default.Robin H. Johnson2014-05-314-4/+4
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Improve debugcleanup codeRobin H. Johnson2014-04-162-17/+25
| | | | | | | | | - Improve the debug-cleanup code to use isTrue and match other code style. - add explicit return 0 after debug-cleanup to avoid passing a false negative failure code up to a higher level function. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Bump version to 3.4.49.1v3.4.49.1Robin H. Johnson2014-04-131-1/+1
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Document --no-debug-cleanup.Robin H. Johnson2014-04-131-0/+3
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Detect mknod failure.Robin H. Johnson2014-04-131-6/+7
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* More device nodes.Robin H. Johnson2014-04-131-6/+7
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Force ownership of files in building initramfs.Robin H. Johnson2014-04-131-1/+1
|
* Make it possible to turn off all of the on-exit cleanup.Robin H. Johnson2014-04-133-15/+29
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Fix MDADM_CONFIG missing message.Robin H. Johnson2014-04-131-1/+1
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* LVM install fixes.Robin H. Johnson2014-04-132-3/+6
| | | | | | Clean up LVM install to work with non-root and handle errors. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Fix System.map location for src!=output dir.Robin H. Johnson2014-04-131-2/+3
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Fix install with kernel outputdir.Robin H. Johnson2014-04-051-0/+3
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Help users find the right section.Robin H. Johnson2014-03-171-3/+3
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Remind users that the manpage documents the initramfs parameters.Robin H. Johnson2014-03-171-1/+6
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Bump version to 3.4.49v3.4.49Richard Yao2014-03-171-1/+1
| | | | Signed-off-by: Richard Yao <ryao@gentoo.org>
* call_func_timeout() should return 1 upon failureRichard Yao2014-03-151-4/+4
| | | | Signed-off-by: Richard Yao <ryao@gentoo.org>
* Revert "Workaround busybox modprobe's inability to load ZFS modules"Richard Yao2014-03-152-3/+4
| | | | | | | | | This reverts commit 2fa0a9beaa069a61f907f0b06c9bd6abeddb1ca7. Signed-off-by: Richard Yao <ryao@gentoo.org> Conflicts: defaults/initrd.scripts
* Load modules by absolute path in busybox modprobeRichard Yao2014-03-151-0/+26
| | | | | | | | | | | | | | | | | | | Our switch to busybox modprobe broke ZFS module loading where busybox modprobe would load two modules and then fail. Limited developer time resulted in a hack being put into place to repeat modprobe until ZFS appeared. However, this was never a real long term solution. Recent analysis with strace suggests that loading two modules corrupts busybox's current working directory inside the kernel. Consequently, subsequent tests where absolute paths were used instead of relative ones made the problem disappear. Modifying busybox to use full paths when loading modules makes module loading work on all affected kernels. While the long term plan is to fix the kernel, this workaround will be needed indefinitely for affected kernels, even after mainline Linux is fixed. Signed-off-by: Richard Yao <ryao@gentoo.org>
* Try mmap() when loading modulesRichard Yao2014-03-151-1/+1
| | | | Signed-off-by: Richard Yao <ryao@gentoo.org>
* Fix endless loop in gen_funcs.sh when LOGLEVEL is emptyMartin Dummer2014-03-151-0/+3
| | | | | | | | | When LOGLEVEL is unset or empty then genkernel loops endlessly in gen_funcs.sh. The solution is to set a proper default loglevel in $USRBIN/genkernel. Signed-off-by: Martin Dummer <martin.dummer@gmx.net> Signed-off-by: Richard Yao <ryao@gentoo.org>
* fix broken function prompt_user()Martin Dummer2014-03-151-2/+4
| | | | | | | | | | | There is a mistake in the parameter check of function prompt_user() which causes to exit the initramfs unconditionally when the function is called with *correct* number of parameters (which then causes a kernel panic) This patch puts the parameter check into a readable if..then..fi block. Signed-off-by: Martin Dummer <martin.dummer@gmx.net> Signed-off-by: Richard Yao <ryao@gentoo.org>
* Advertise zfs support in genkernel.confMartin Dummer2014-03-151-0/+3
| | | | | Signed-off-by: Martin Dummer <martin.dummer@gmx.net> Signed-off-by: Richard Yao <ryao@gentoo.org>
* Include ZFS support when / is ZFSRichard Yao2014-03-151-1/+1
| | | | Signed-off-by: Richard Yao <ryao@gentoo.org>
* Create rootfs_type_is() helper functionRichard Yao2014-03-151-0/+11
| | | | | | | | This is meant to facilite automatic detection of root filesystems that require additional support. The main one being ZFS, but btrfs will also qualify once support has been added. Signed-off-by: Richard Yao <ryao@gentoo.org>
* Record hostid into initramfsRichard Yao2014-03-151-0/+2
| | | | | | | | ZFS pool import on non-exported pools is only permitted when the hostid of the system matches the host id of the last pool to import it. Store the hostid of the system to ensure that it matches at boot. Signed-off-by: Richard Yao <ryao@gentoo.org>
* Bump version to 3.4.48v3.4.48Richard Yao2014-02-271-1/+1
| | | | Signed-off-by: Richard Yao <ryao@gentoo.org>