From: Chris Gianelloni Date: Tue, 3 Apr 2007 20:46:57 +0000 (+0000) Subject: Added a second patch from John R. Graham from bug... X-Git-Tag: v3.4.10.902~251 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=63a3dab6ca32aacfa7076243cf2cb8306f75212f;p=genkernel.git Added a second patch from John R. Graham from bug #169383. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@501 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- diff --git a/ChangeLog b/ChangeLog index 157386c..75d0043 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,11 @@ # Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 03 Apr 2007; Chris Gianelloni gen_cmdline.sh, + genkernel.8: + Added a second patch from John R. Graham from + bug #169383. + 27 Mar 2007; Chris Gianelloni alpha/modules_load, ia64/modules_load, x86/modules_load, x86_64/modules_load, xen0/modules_load, xenU/modules_load: diff --git a/gen_cmdline.sh b/gen_cmdline.sh index a3222bd..7a2a076 100755 --- a/gen_cmdline.sh +++ b/gen_cmdline.sh @@ -36,6 +36,8 @@ longusage() { echo " --no-gensplash Do not use gensplash" echo " --install Install the kernel after building" echo " --no-install Do not install the kernel after building" + echo " --symlink Manage symlinks in /boot for installed images" + echo " --no-symlink Do not manage symlinks" echo " --no-initrdmodules Don't copy any modules to the initrd" echo " --no-udev Disable udev support" echo " --no-devfs Disable devfs support" @@ -470,6 +472,10 @@ parse_cmdline() { CMD_SYMLINK=1 print_info 2 "CMD_SYMLINK: $CMD_SYMLINK" ;; + --no-symlink) + CMD_SYMLINK=0 + print_info 2 "CMD_SYMLINK: $CMD_SYMLINK" + ;; --no-kernel-sources) CMD_NO_KERNEL_SOURCES=1 print_info 2 "CMD_NO_KERNEL_SOURCES: $CMD_NO_KERNEL_SOURCES" diff --git a/genkernel.8 b/genkernel.8 index e7a9e45..8900b19 100644 --- a/genkernel.8 +++ b/genkernel.8 @@ -101,6 +101,27 @@ then will be automatically mounted if it is not already mounted before the initrd and kernel image is copied over. .TP +\fB\-\-\fR[no\-]\fBsymlink\fR +Manages, or does not manage, symlinks in +.I /boot +like the manual kernel "make install" process does. A +.I kernel +(or, depending on options, +.I kernelz\fR) +symlink will link to the most recently built kernel image and a +.I kernel.old +(or +.I kernelz.old\fR) +symlink will link to the second most recently built image, if one exists. +Similar symlinks (both * and *.old) are managed for +.I initramfs\fR (or +.I initrd\fR) +and +.I System.map\f. +The corresponding work products (i.e., the actual kernel and inirtamfs images, +and System.map) are also managed accordingly. NOTE: Specifying --symlink +does nothing unless --install is also specified. +.TP \fB\-\-no\-initrdmodules\fR Don't copy any modules to the initrd. .TP