kexec-tools: Move to portage-stable

Signed-off-by: Geoff Levand <geoff@infradead.org>
This commit is contained in:
Geoff Levand 2017-03-03 15:04:35 -08:00
parent 89f3c3286d
commit a165608f80
19 changed files with 0 additions and 1131 deletions

View File

@ -4,7 +4,6 @@
dev-lang/perl-5.12.4-r1
dev-libs/gobject-introspection-1.40.0-r1
sys-apps/kexec-tools-2.0.4-r1
dev-util/boost-build-1.55.0
# build errors

View File

@ -1,276 +0,0 @@
# ChangeLog for sys-apps/kexec-tools
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/ChangeLog,v 1.49 2013/04/01 13:17:49 jlec Exp $
01 Apr 2013; Justin Lecher <jlec@gentoo.org> files/kexec.init-2.0.4:
Fix bashism in init script, #463752
*kexec-tools-2.0.4-r1 (30 Mar 2013)
30 Mar 2013; Justin Lecher <jlec@gentoo.org> files/kexec.init-2.0.4,
-kexec-tools-2.0.4.ebuild, +kexec-tools-2.0.4-r1.ebuild:
Fix init script if no initrd is used, #463752
*kexec-tools-2.0.4 (27 Mar 2013)
27 Mar 2013; Justin Lecher <jlec@gentoo.org> files/kexec.init-2.0.3,
+files/kexec.conf-2.0.4, +files/kexec.init-2.0.4, +kexec-tools-2.0.4.ebuild,
+files/kexec-tools-2.0.4-disable-kexec-test.patch, metadata.xml:
Version BUmp; drop bashism from initscript, #447548; enhanced detection of
kernel and initrd image, #412039
*kexec-tools-2.0.3-r1 (18 Mar 2012)
18 Mar 2012; Justin Lecher <jlec@gentoo.org> +files/kexec.conf-2.0.3,
+files/kexec.init-2.0.3, +kexec-tools-2.0.3-r1.ebuild, +files/README.Gentoo:
Use $RC_REBOOT instead of /sbin/runlevel, #401231 thanks William Hubbs for
the patch; usability enhancements including better detection of the kernel
image, additional option parsing, better descriptions in the config file,
#392229, thanks teika for those things; better detection of genkernel,
#370207, thanks Łukasz Stelmach & Dennis Schridde for their contributions
*kexec-tools-2.0.3 (16 Feb 2012)
16 Feb 2012; Justin Lecher <jlec@gentoo.org> +kexec-tools-2.0.3.ebuild,
metadata.xml:
Add myself as maintainer, version bump
21 Sep 2011; Tim Harder <radhermit@gentoo.org> -kexec-tools-2.0.0-r1.ebuild,
-kexec-tools-2.0.0-r2.ebuild, -files/kexec-tools-2.0.0-asneeded.patch,
-kexec-tools-2.0.1.ebuild, -kexec-tools-2.0.1-r1.ebuild,
-kexec-tools-2.0.2.ebuild:
Remove old.
21 Sep 2011; Tony Vroon <chainsaw@gentoo.org> kexec-tools-2.0.2-r1.ebuild:
Marked stable on AMD64 based on arch testing by Agostino "ago" Sarubbo,
Elijah "Armageddon" El Lazkani & Tomáš "Mepho" Pružina in bug #382659.
21 Sep 2011; Michał Górny <mgorny@gentoo.org> kexec-tools-9999.ebuild:
Migrate to git-2.
19 Sep 2011; Andreas Schuerch <nativemad@gentoo.org>
kexec-tools-2.0.2-r1.ebuild:
x86 stable, see bug 382659
15 Apr 2011; Diego E. Pettenò <flameeyes@gentoo.org>
kexec-tools-2.0.2-r1.ebuild:
Add fix for compiling with gcc 4.6 (bug #631069). Thanks to Vladimir for the
patch; upstream already fixed this one.
*kexec-tools-2.0.2-r1 (27 Mar 2011)
27 Mar 2011; Justin Lecher <jlec@gentoo.org> +kexec-tools-2.0.2-r1.ebuild,
+files/kexec.init-ng:
Allow bypassing of kexec during reboot, #357095; Proper usage of ASFLAGS,
#313611
29 Nov 2010; Tim Harder <radhermit@gentoo.org> kexec-tools-9999.ebuild:
Use the correct upstream git repository (bug #339600 by Pinky).
*kexec-tools-2.0.2 (29 Oct 2010)
29 Oct 2010; Tim Harder <radhermit@gentoo.org> +kexec-tools-2.0.2.ebuild,
metadata.xml:
Version bump (bug #343209 by jlec). Update SRC_URI, add lzma USE flag and
dependency, and add a couple die statements to helper functions.
29 Oct 2010; Justin Lecher <jlec@gentoo.org> files/kexec.init:
Cleaned extra whitespaces in init script
07 Oct 2010; Tim Harder <radhermit@gentoo.org>
kexec-tools-2.0.0-r1.ebuild, kexec-tools-2.0.0-r2.ebuild,
kexec-tools-2.0.1.ebuild, kexec-tools-2.0.1-r1.ebuild,
kexec-tools-9999.ebuild:
Fix HOMEPAGE for bug #336481, thanks to Christian Asseburg for reporting.
Update copyright header.
*kexec-tools-2.0.1-r1 (30 Jul 2010)
30 Jul 2010; Magnus Granberg <zorry@gentoo.org>
+kexec-tools-2.0.1-r1.ebuild:
fix #183062 disable -fPIE -pie thanks all in that bug.
18 Jul 2010; Jeroen Roovers <jer@gentoo.org> metadata.xml:
Remove useless maintainer entry.
28 Mar 2010; Jeremy Olexa <darkside@gentoo.org> metadata.xml:
Drop myself from metadata, add maintainer-needed
*kexec-tools-2.0.1 (10 Jan 2010)
10 Jan 2010; Robin H. Johnson <robbat2@gentoo.org>
+kexec-tools-2.0.1.ebuild:
Bug #293663: version bump.
20 Aug 2009; Jeremy Olexa <darkside@gentoo.org>
-files/kexec-tools-1.101-LDFLAGS.patch,
-files/kexec-tools-1.101-ppc64.patch,
-files/kexec-tools-1.101-respect-LDFLAGS.patch,
-files/kexec-linux-headers.patch:
remove old patches
*kexec-tools-2.0.0-r2 (12 Apr 2009)
12 Apr 2009; Jeremy Olexa <darkside@gentoo.org> files/kexec.init,
-kexec-tools-1.101-r4.ebuild, -kexec-tools-1.101-r7.ebuild,
+kexec-tools-2.0.0-r2.ebuild:
revision bump to force installation of a new init script that is compatible
with openrc-0.4.3. Stable users need not upgrade but can without issues
22 Mar 2009; Markus Meier <maekke@gentoo.org> kexec-tools-2.0.0-r1.ebuild:
amd64/x86 stable, bug #260092
25 Jan 2009; Jeremy Olexa <darkside@gentoo.org>
files/kexec-tools-2.0.0-respect-LDFLAGS.patch:
Update patch, submitted by Arfrever Frehtes Taifersar Arahesis, bug 256135
*kexec-tools-2.0.0-r1 (25 Jan 2009)
25 Jan 2009; Jeremy Olexa <darkside@gentoo.org>
+files/kexec-tools-2.0.0-respect-LDFLAGS.patch, -kexec-tools-2.0.0.ebuild,
+kexec-tools-2.0.0-r1.ebuild:
Add patch to respect LDFLAGS in kdump
*kexec-tools-2.0.0 (23 Jan 2009)
23 Jan 2009; Jeremy Olexa <darkside@gentoo.org>
+files/kexec-tools-2.0.0-asneeded.patch, metadata.xml,
+kexec-tools-2.0.0.ebuild, kexec-tools-9999.ebuild:
Version bump to 2.0.0 and allign -9999 ebuild with 2.0.0 (style changes).
New use flag to disable extended xen support if desired.
*kexec-tools-1.101-r7 (22 Jan 2009)
22 Jan 2009; Jeremy Olexa <darkside@gentoo.org>
-kexec-tools-1.101-r6.ebuild, +kexec-tools-1.101-r7.ebuild:
Respect user CFLAGS, bug 241994
22 Jan 2009; Jeremy Olexa <darkside@gentoo.org> kexec-tools-9999.ebuild:
Fix git URL, bug 239512
22 Jan 2009; Jeremy Olexa <darkside@gentoo.org> metadata.xml:
update metedata.xml - I'll maintain this
*kexec-tools-1.101-r6 (18 Dec 2008)
18 Dec 2008; Daniel Drake <dsd@gentoo.org> files/kexec.init,
+kexec-tools-1.101-r6.ebuild:
Fix 2 bugs in init script, patch from Richard Li and Chris Slycord in bug
#219315
*kexec-tools-1.101-r5 (01 Aug 2008)
01 Aug 2008; Matthias Schwarzott <zzam@gentoo.org> files/kexec.init,
+kexec-tools-1.101-r5.ebuild:
Fixed init script to detect reboot also with baselayout-2, Bug #218268.
21 Mar 2008; Stefan Schweizer <genstef@gentoo.org>
-files/kexec-tools-9999-LDFLAGS.patch, files/kexec.init,
kexec-tools-9999.ebuild:
remove failing patch thanks to pioto in bug 213426 and fix init script for
openrc, bug 214018
11 Mar 2008; Stefan Schweizer <genstef@gentoo.org>
+files/kexec-tools-1.101-respect-LDFLAGS.patch,
kexec-tools-1.101-r4.ebuild:
respect ldflags, thanks to Arfrever Frehtes Taifersar Arahesis
<Arfrever.FTA@GMail.Com> in bug 181463
21 Jan 2008; Stefan Schweizer <genstef@gentoo.org> files/kexec.init:
set KPARAM correctly thanks to Friedrich Oslage <bluebird@porno-bullen.de>
in bug 203406
12 May 2007; Daniel Drake <dsd@gentoo.org> metadata.xml:
Move from kernel to kernel-misc herd
*kexec-tools-1.101-r4 (13 Mar 2007)
13 Mar 2007; Roy Marples <uberlord@gentoo.org> files/kexec.init,
+kexec-tools-1.101-r4.ebuild:
New init script works with non bash shells.
*kexec-tools-9999 (06 Mar 2007)
06 Mar 2007; Mike Frysinger <vapier@gentoo.org>
+files/kexec-tools-9999-LDFLAGS.patch, +kexec-tools-9999.ebuild:
Add ebuild for git tree.
06 Mar 2007; <genstef@gentoo.org> +files/kexec-linux-headers.patch,
-kexec-tools-1.101.ebuild, kexec-tools-1.101-r3.ebuild:
Do not use linux-headers incorrectly, thanks to Sheldon Hearn
<sheldonh@starjuice.net> in bug 169610
05 Nov 2006; <blubb@gentoo.org> kexec-tools-1.101-r3.ebuild:
stable on amd64
28 Oct 2006; Christian Faulhammer <opfer@gentoo.org>
kexec-tools-1.101-r3.ebuild:
x86 stable wrt bug #151251
13 Aug 2006; Roy Marples <uberlord@gentoo.org> files/kexec.conf,
files/kexec.init:
Update the init script so that it's more intelligent working things out
so it should just work for most peoples installs.
We now confiure kexec on shutdown by default instead of startup.
*kexec-tools-1.101-r3 (13 Jun 2006)
13 Jun 2006; Daniel Drake <dsd@gentoo.org> files/kexec.conf,
files/kexec.init, -kexec-tools-1.100-r1.ebuild,
-kexec-tools-1.101-r1.ebuild, -kexec-tools-1.101-r2.ebuild,
+kexec-tools-1.101-r3.ebuild:
Add new configuration variable, which allows you to load the kernel image
during shutdown rather than startup. This saves some memory during system
operation, but poses an inconvenience if you like to use 'kexec --unload'
during operation to disable kexec for the next reboot.
*kexec-tools-1.101-r2 (04 Mar 2006)
04 Mar 2006; Stefan Schweizer <genstef@gentoo.org> files/kexec.init,
+kexec-tools-1.101-r2.ebuild:
version bump, add kdump patches from fastboot mailing list, use make
install, sanitize init script thanks to David Danier <golk@gmx.net> in bug
124966
25 Feb 2006; Mike Frysinger <vapier@gentoo.org>
+files/kexec-tools-1.101-ppc64.patch, kexec-tools-1.101-r1.ebuild:
Fix configure detection of ppc64 hosts.
29 Jan 2006; Mike Frysinger <vapier@gentoo.org>
+files/kexec-tools-1.101-LDFLAGS.patch, kexec-tools-1.101-r1.ebuild:
Fix building with LDFLAGS.
*kexec-tools-1.101-r1 (20 Jan 2006)
20 Jan 2006; Stefan Schweizer <genstef@gentoo.org> files/kexec.conf,
files/kexec.init, +kexec-tools-1.101-r1.ebuild:
Add KPARAM autodetection thanks to James Le Cuirot <chewi@ffaura.com> in bug
107527
29 Oct 2005; Mark Loeser <halcy0n@gentoo.org> kexec-tools-1.101.ebuild:
Stable on x86; bug #110734
*kexec-tools-1.101 (12 Mar 2005)
12 Mar 2005; Stefan Schweizer <genstef@gentoo.org>
+kexec-tools-1.101.ebuild:
version bump
*kexec-tools-1.100-r1 (04 Feb 2005)
04 Feb 2005; Stefan Schweizer <genstef@gentoo.org> files/kexec.init,
+kexec-tools-1.100-r1.ebuild:
Making initrd support actually work, thanks to mayday147 in
http://forums.gentoo.org/viewtopic.php?p=2055679#2055679
*kexec-tools-1.100 (31 Jan 2005)
31 Jan 2005; Stefan Schweizer <genstef@gentoo.org> +metadata.xml,
+files/kexec.conf, +files/kexec.init, +kexec-tools-1.100.ebuild:
New ebuild thanks to Starz McCllelan <starz@antisocial.com>, Jay Pfeifer
<pfeifer@gentoo.org>, Christopher Sidebottom <damouse@zero10.demon.co.uk>,
Justus Winter <justus@sunny-winter.de>, Radoslaw -AstralStorm- Szkodzinski
<astralstorm@gmail.com>, Daniel Webert <rockoo@gmail.com> and Carlos Silva
<r3pek@r3pek.homelinux.org> in bug 50313

View File

@ -1,4 +0,0 @@
DIST kexec 154616 SHA256 72e8bf5923f81ac969cd95ee3ffc0ca9504cdfbdb875bbe46a3ac49ae01f2ff1 SHA512 a133764b3146a30f2d290b060d6848bcc7120075676b74213087f19a2d8e817fdd4965c969ce042347067d1b536cabc86a0423ff396b0b87be99811dbd6b3308 WHIRLPOOL 2ac6d82eb37b1b74df284a7ea480256e24a7254a44f70c0131388cc85fd270e95311dc3287c25d2d449a624e7d1364c3bff13a447128ef65dad1a8bcde0376f1
DIST kexec-tools-2.0.2.tar.bz2 305961 SHA256 f9acb94dcf4cee2a04da18112a6e5732cdcbe98f893039a93582d88307e0103f SHA512 cacddfd67d30b4a21b02ddb35334cef2c60ca9038dea62e38f4b51879c77fa9f7f0e7c154fb46526fc7995b94ccf3e6a8d6ad851f865ef3362ed7a04c863cca6 WHIRLPOOL a9a620ded24e71339f4cb17e9d60a3020151937db7b65bb16657051a11f180965d2c0a83293b3fa327bc935342a3bc91051f35634d51d80f761b77af2f2bcc3d
DIST kexec-tools-2.0.3.tar.xz 264620 SHA256 a2dcb8320cab2ce22b3734ec07b1a63e27d0b301b4a88556b1b05d53f7d786a9 SHA512 f52d52a445cd4da418c3b4c3db017376a3eecda6e844f99387e2c4bc247c2d91a4ce27aed41bd703a04e7a0747597734be33fecf1419071d724012aa78507009 WHIRLPOOL 9c6b63d2eff3593fcba623ebd8c289e459467dd709a9288b58a584ff4d0bf69853af88d5cfc929eb3e2bd5b845265b2031a254ad76a6ef3580a4a9b9d03c74b5
DIST kexec-tools-2.0.4.tar.xz 271604 SHA256 e5f5ab00d746eb15b4714eca6a8ec5a1a86a62ce2bbdad1b3000161138a978c6 SHA512 2514f407d9150d2615dffc91a525fb28f159bef92b9543f9802e2618746b7d4c04137668ad8a8d8f0b75f68ed9057d09629ce736b6a061b5cf817b9d904f549e WHIRLPOOL 70ad298512e700cd1cdee7698e4fa68a769d91d3080d5d8387b8362ad49126ad68b0b6dbd1f13305958bdc988f805fa610e487682fd0eb5e4e9bcda0a9022627

View File

@ -1,33 +0,0 @@
Usage
=====
Do
$ man 8 kexec
for full understanding of the underlying kexec command.
Gentoo offers a wrapper to the bare kexec command through
/etc/init.d/kexec.
Configuration
-------------
Configuration is done in /etc/conf.d/kexec, which is self-documented.
Usage
-----
In Gentoo, kexec is invoked, i.e., the new kernel will be booted when
rebooting, by reboot (8) command or by pressing Ctrl+Alt+Del.
If you want to use kexec once, just run
$ /etc/init.d/kexec start
It'll reserve kexec call at reboot. Later on, you can reboot anytime,
letting kexec starts another (or the same) kernel. When all is done in
the runlevel 6 - killing processes, unmounting volumes, etc - kexec
starts the new kernel instead of doing the normal hardware reboot.
If you want kexec to be run every time you reboot, add it to a runlevel:
$ rc-update add kexec <runlevel>
If you want to reboot in the normal way this time, do:
$ touch /nokexec

View File

@ -1,11 +0,0 @@
--- kdump/Makefile
+++ kdump/Makefile
@@ -18,7 +18,7 @@
$(KDUMP): CC=$(TARGET_CC)
$(KDUMP): $(KDUMP_OBJS)
@$(MKDIR) -p $(@D)
- $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ $(KDUMP_OBJS)
+ $(CC) $(LDFLAGS) -o $@ $(KDUMP_OBJS)
$(KDUMP_MANPAGE): kdump/kdump.8
$(MKDIR) -p $(MANDIR)/man8

View File

@ -1,17 +0,0 @@
diff --git kexec-tools-2.0.3/kexec_test/Makefile kexec-tools-2.0.3/kexec_test/Makefile
index fec6210..2ed4d51 100644
--- kexec-tools-2.0.3/kexec_test/Makefile
+++ kexec-tools-2.0.3/kexec_test/Makefile
@@ -8,12 +8,6 @@ dist += kexec_test/Makefile $(KEXEC_TEST_SRCS) \
kexec_test/x86-setup-legacy-pic.S
BUILD_KEXEC_TEST = no
-ifeq ($(ARCH),i386)
-BUILD_KEXEC_TEST = yes
-endif
-ifeq ($(ARCH),x86_64)
-BUILD_KEXEC_TEST = yes
-endif
ifeq ($(BUILD_KEXEC_TEST),yes)

View File

@ -1,18 +0,0 @@
# Boot partition
#BOOTPART="/boot"
# Kernel name
#KNAME="vmlinuz-2.6.10"
# Root partition (should be autodetected)
#ROOTPART="/dev/hda3"
# Kernel parameters (should be autodetected)
#KPARAM="splash=silent,theme:emergence"
# Initrd
#INITRD="/boot/fbsplash-emergence-1024x768"
# Load kexec kernel image into memory during shutdown instead of bootup
# (default: yes)
#LOAD_DURING_SHUTDOWN="yes"

View File

@ -1,31 +0,0 @@
# Load kexec kernel image into memory during shutdown instead of bootup
# (default: yes)
#LOAD_DURING_SHUTDOWN="yes"
# Additional arguments passed to kexec (8)
#KEXEC_OPT_ARGS=""
# Kernel image partition. Mounted automatically if not.
# (default: /boot)
#BOOTPART="/boot"
# Root partition (should be autodetected)
#ROOTPART="/dev/hda3"
# Kernel image pathname, relative from BOOTPART.
# If it's one of
# {kernel-genkernel,bzImage,vmlinuz,kernel}-<currently running kernel version>,
# or bzImage, vmlinuz (without suffix),
# then it's automaticaly detected.
# Setting it to "-" will disable kexec.
#KNAME="vmlinuz-2.6.10"
# Initrd
# Same automatic detection restriction as for KNAME apply.
# initramfs-genkernel-<currently running kernel version>,
# initrd{,.img}-<currently running kernel version>{,.img}
# will be detected.
#INITRD="/boot/fbsplash-emergence-1024x768"
# Kernel parameters (should be autodetected)
#KPARAM="splash=silent,theme:emergence"

View File

@ -1,34 +0,0 @@
# Load kexec kernel image into memory during shutdown instead of bootup
# (default: yes)
#LOAD_DURING_SHUTDOWN="yes"
# Additional arguments passed to kexec (8)
#KEXEC_OPT_ARGS=""
# Kernel image partition. Mounted automatically if not.
# (default: /boot)
#BOOTPART="/boot"
# Root partition (should be autodetected)
#ROOTPART="/dev/hda3"
# Kernel image pathname, relative from BOOTPART.
# If it's one of
# {kernel-genkernel,bzImage,vmlinuz,kernel}-<currently running kernel version>,
# or bzImage, vmlinuz (without suffix),
# then it's automaticaly detected.
# Setting it to "-" will disable kexec.
#KNAME="vmlinuz-3.9.0"
# Initrd
# Same automatic detection restriction as for KNAME apply.
# initramfs-genkernel-<currently running kernel version>,
# initrd{,.img}-<currently running kernel version>{,.img}
# will be detected.
#INITRD="/boot/fbsplash-emergence-1024x768"
# Kernel parameters (should be autodetected)
#KPARAM="splash=silent,theme:emergence"
# Do not try to mount /boot
# DONT_MOUNT_BOOT="yes"

View File

@ -1,94 +0,0 @@
#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/files/kexec.init,v 1.15 2010/10/29 06:44:51 jlec Exp $
depend() {
need localmount
}
image_path() {
local x= kver=$(uname -r)
for x in "${KNAME:-bzImage}" vmlinuz \
bzImage-"${kver}" vmlinuz-"${kver}" ; do
if [ -e "${BOOTPART}/${x}" ] ; then
echo "${BOOTPART}/${x}"
return 0
fi
done
return 1
}
load_image() {
if [ "${KNAME}" = "-" ] ; then
ebegin "Disabling kexec"
kexec -u
eend $?
return $?
fi
BOOTPART="${BOOTPART:-/boot}"
local img="$(image_path)" mounted=false initrdopt=
if [ -z "${img}" ] ; then
# If we cannot find our image, try mounting ${BOOTPART}
if ! grep -q " ${BOOTPART} " /proc/mounts ; then
ebegin "Mounting ${BOOTPART}"
mount "${BOOTPART}" && mounted=true
eend $? || return $?
img="$(image_path)"
fi
fi
if [ -z "${img}" ] ; then
eerror "No kernel image found in ${BOOTPART}!"
${mounted} && umount "${BOOTPART}"
return 1
fi
ebegin "Loading kernel image ${img} for kexec"
if [ -z "${ROOTPART}" ] ; then
ROOTPART="$(readlink -f "$(sed -n '/^\/[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /etc/mtab)")"
fi
if [ -z "${KPARAM}" ] ; then
KPARAM="$(sed -e 's/ /\n/g' /proc/cmdline | grep -v -e "^root=" | tr '\n' ' ')"
fi
# Use the default initrd if it exists and none other given
if [ -z "${INITRD}" -a -e "${BOOTPART}"/initrd ] ; then
INITRD="${BOOTPART}/initrd"
fi
if [ -e "${INITRD}" ] ; then
initrdopt="--initrd=${INITRD}"
fi
kexec -l "${img}" --append="root=${ROOTPART} ${KPARAM}" ${initrdopt}
local res=$?
${mounted} && umount "${BOOTPART}"
eend ${res}
return ${res}
}
start() {
[ "${LOAD_DURING_SHUTDOWN:-yes}" = "yes" ] && return 0
ebegin "Configuring kexec"
load_image
eend 0
}
stop() {
[ "${LOAD_DURING_SHUTDOWN:-yes}" != "yes" ] && return 0
ebegin "Configuring kexec"
if [ "`/sbin/runlevel|/bin/cut -c 3`" != "6" ]; then
einfo "Not rebooting, so disabling"
kexec -u
return 0
fi
load_image
eend $?
}

View File

@ -1,119 +0,0 @@
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/files/kexec.init-2.0.3,v 1.2 2013/03/27 11:50:55 jlec Exp $
depend() {
need localmount
}
image_path() {
local x= kver=$(uname -r) karch=$(uname -m)
BOOTPART="${BOOTPART:-/boot}"
for x in "${KNAME:-bzImage}" vmlinuz \
bzImage-${kver} vmlinuz-${kver} \
kernel-genkernel-${karch}-${kver} \
kernel-${kver} kernel-${karch}; do
if [[ -e "${BOOTPART}/${x}" ]] ; then
echo "${BOOTPART}/${x}"
return 0
fi
done
return 1
}
initrd_path() {
local x= kver=$(uname -r) karch=$(uname -m)
BOOTPART="${BOOTPART:-/boot}"
for x in "${INITRD:-initrd}" \
initrd.img-${kver} initrd-${kver}.img \
initrd-${kver} initramfs-${kver}.img \
initramfs-genkernel-${karch}-${kver} ; do
if [[ -e "${BOOTPART}/${x}" ]] ; then
echo "${BOOTPART}/${x}"
return 0
fi
done
return 1
}
load_image() {
if [[ "${KNAME}" = "-" ]]; then
ebegin "Disabling kexec"
kexec -u
eend $?
return $?
fi
BOOTPART="${BOOTPART:-/boot}"
local img="$(image_path)" initrd="$(initrd_path)" mounted=false initrdopt=
if [[ -z "${img}" ]] || [[ -z "${initrd}" ]]; then
# If we cannot find our image, try mounting ${BOOTPART}
if ! grep -q " ${BOOTPART} " /proc/mounts; then
ebegin "Mounting ${BOOTPART}"
mount "${BOOTPART}" && mounted=true
eend $? || return $?
img="$(image_path)"
initrd="$(initrd_path)"
fi
fi
if [[ -z "${img}" ]]; then
eerror "No kernel image found in ${BOOTPART}!"
${mounted} && umount "${BOOTPART}"
return 1
else
ebegin "Loading kernel image ${img} for kexec"
fi
[[ -n "${ROOTPART}" ]] || \
ROOTPART="$(readlink -f "$(sed -n '/^\/[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /proc/mounts)")"
[[ -n "${KPARAM}" ]] || KEXEC_OPT_ARGS+=" --reuse-cmdline"
[[ -n "${initrd}" ]] && [[ -e "${initrd}" ]] && initrdopt="--initrd=${initrd}"
einfo " Setting kexec with ${KEXEC_OPT_ARGS} -l ${img} root=${ROOTPART} ${KPARAM} ${initrdopt}"
kexec ${KEXEC_OPT_ARGS} -l "${img}" --append="root=${ROOTPART} ${KPARAM}" ${initrdopt}
local res=$?
${mounted} && umount "${BOOTPART}"
eend ${res}
return ${res}
}
start() {
if [[ "${LOAD_DURING_SHUTDOWN:-yes}" = "yes" ]]; then
image_path > /dev/null || \
ewarn "Cannot find kernel image. Please make sure a valid kernel image is present before reboot."
return 0
else
ebegin "Configuring kexec"
load_image
eend $?
fi
}
stop() {
[[ "${LOAD_DURING_SHUTDOWN:-yes}" != "yes" ]] && return 0
if ! yesno $RC_REBOOT; then
einfo "Not rebooting, so disabling"
kexec -u
return 0
fi
if [[ -f /nokexec ]]; then
einfo "Not using kexec during reboot"
rm -f /nokexec
kexec -u
return 0
fi
ebegin "Configuring kexec"
load_image
eend $?
}

View File

@ -1,144 +0,0 @@
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/files/kexec.init-2.0.4,v 1.3 2013/04/01 13:17:49 jlec Exp $
depend() {
need localmount
}
image_path() {
local x= kver=$(uname -r) karch=$(uname -m)
BOOTPART="${BOOTPART:-/boot}"
for x in "${KNAME:-bzImage}" vmlinuz \
bzImage-${kver} vmlinuz-${kver} \
kernel-genkernel-${karch}-${kver} \
kernel-${kver} kernel-${karch}; do
if [ -e "${BOOTPART}/${x}" ]; then
echo "${BOOTPART}/${x}"
return 0
fi
done
return 1
}
initrd_path() {
local x= kver=$(uname -r) karch=$(uname -m)
BOOTPART="${BOOTPART:-/boot}"
for x in "${INITRD:-initrd}" \
initrd.img-${kver} initrd-${kver}.img \
initrd-${kver} initramfs-${kver}.img \
initramfs-genkernel-${karch}-${kver} ; do
if [ -e "${BOOTPART}/${x}" ]; then
echo "${BOOTPART}/${x}"
return 0
fi
done
return 1
}
mount_boot(){
local ret
[ -n ${DONT_MOUNT_BOOT} ] && return 1
grep -q " ${BOOTPART:-/boot} " /proc/mounts && return 1
BOOTPART="${BOOTPART:-/boot}"
ebegin "Mounting ${BOOTPART}"
mount "${BOOTPART}"; ret=$?
eend ${ret}
return ${ret}
}
load_image() {
local ret
if [ "${KNAME}" = "-" ]; then
ebegin "Disabling kexec"
kexec -u; ret=$?
eend ${ret}
return ${ret}
fi
BOOTPART="${BOOTPART:-/boot}"
local img= initrd="$(initrd_path)" mounted=false initrdopt=
if ! img="$(image_path)"; then
if mount_boot; then
if img="$(image_path)"; then
mounted=true
initrd="$(initrd_path)"
else
eerror "No kernel image found in ${BOOTPART}!"
umount "${BOOTPART}"
return 1
fi
else
eerror "No kernel image found in ${BOOTPART}!"
return 1
fi
fi
if [ -n "${INITRD}" ] && \
! [ "${INITRD}" = "${initrd}" ]; then
eerror "Requested initrd: ${INITRD}"
eerror "could not be found"
return 1
fi
[ -n "${ROOTPART}" ] || \
ROOTPART="$(readlink -f "$(sed -n '/^\/[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /proc/mounts)")"
[ -n "${KPARAM}" ] || KEXEC_OPT_ARGS="${KEXEC_OPT_ARGS} --reuse-cmdline"
[ -n "${initrd}" ] && [ -e "${initrd}" ] && initrdopt="--initrd=${initrd}"
local msg=
[ -n ${initrd} ] && \
msg="with ${initrd}"
einfo "Using kernel image ${img} ${msg} for kexec"
ebegin "Setting kexec with ${KEXEC_OPT_ARGS} -l ${img} root=${ROOTPART} ${KPARAM} ${initrdopt}"
kexec ${KEXEC_OPT_ARGS} -l "${img}" --append="root=${ROOTPART} ${KPARAM}" ${initrdopt}
local res=$?
${mounted} && umount "${BOOTPART}"
eend ${res}
return ${res}
}
start() {
if [ "${LOAD_DURING_SHUTDOWN:-yes}" = "yes" ]; then
if ! image_path > /dev/null; then
ewarn "Cannot find kernel image!"
ewarn "Please make sure a valid kernel image is present before reboot."
return 0
fi
else
ebegin "Configuring kexec"
load_image
eend $?
fi
}
stop() {
[ "${LOAD_DURING_SHUTDOWN:-yes}" != "yes" ] && return 0
if ! yesno $RC_REBOOT; then
einfo "Not rebooting, so disabling"
kexec -u
return 0
fi
if [ -f /nokexec ]; then
einfo "Not using kexec during reboot"
rm -f /nokexec
kexec -u
return 0
fi
ebegin "Configuring kexec"
load_image
eend $?
}

View File

@ -1,101 +0,0 @@
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/files/kexec.init-ng,v 1.1 2011/03/27 08:31:50 jlec Exp $
depend() {
need localmount
}
image_path() {
local x= kver=$(uname -r)
for x in "${KNAME:-bzImage}" vmlinuz \
bzImage-"${kver}" vmlinuz-"${kver}" ; do
if [ -e "${BOOTPART}/${x}" ] ; then
echo "${BOOTPART}/${x}"
return 0
fi
done
return 1
}
load_image() {
if [ "${KNAME}" = "-" ] ; then
ebegin "Disabling kexec"
kexec -u
eend $?
return $?
fi
BOOTPART="${BOOTPART:-/boot}"
local img="$(image_path)" mounted=false initrdopt=
if [ -z "${img}" ] ; then
# If we cannot find our image, try mounting ${BOOTPART}
if ! grep -q " ${BOOTPART} " /proc/mounts ; then
ebegin "Mounting ${BOOTPART}"
mount "${BOOTPART}" && mounted=true
eend $? || return $?
img="$(image_path)"
fi
fi
if [ -z "${img}" ] ; then
eerror "No kernel image found in ${BOOTPART}!"
${mounted} && umount "${BOOTPART}"
return 1
fi
ebegin "Loading kernel image ${img} for kexec"
if [ -z "${ROOTPART}" ] ; then
ROOTPART="$(readlink -f "$(sed -n '/^\/[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /etc/mtab)")"
fi
if [ -z "${KPARAM}" ] ; then
KPARAM="$(sed -e 's/ /\n/g' /proc/cmdline | grep -v -e "^root=" | tr '\n' ' ')"
fi
# Use the default initrd if it exists and none other given
if [ -z "${INITRD}" -a -e "${BOOTPART}"/initrd ] ; then
INITRD="${BOOTPART}/initrd"
fi
if [ -e "${INITRD}" ] ; then
initrdopt="--initrd=${INITRD}"
fi
kexec -l "${img}" --append="root=${ROOTPART} ${KPARAM}" ${initrdopt}
local res=$?
${mounted} && umount "${BOOTPART}"
eend ${res}
return ${res}
}
start() {
[ "${LOAD_DURING_SHUTDOWN:-yes}" = "yes" ] && return 0
ebegin "Configuring kexec"
load_image
eend 0
}
stop() {
[ "${LOAD_DURING_SHUTDOWN:-yes}" != "yes" ] && return 0
ebegin "Configuring kexec"
if [ "`/sbin/runlevel|/bin/cut -c 3`" != "6" ]; then
einfo "Not rebooting, so disabling"
kexec -u
return 0
fi
if [ "`/sbin/runlevel|/bin/cut -c 3`" = "6" ] && [ -f /nokexec ]; then
einfo "Not using kexec during reboot"
rm -f /nokexec
kexec -u
return 0
fi
load_image
eend $?
}

View File

@ -1,50 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/kexec-tools-2.0.2-r1.ebuild,v 1.4 2011/09/21 15:28:08 chainsaw Exp $
EAPI=2
inherit eutils flag-o-matic
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
HOMEPAGE="http://kernel.org/pub/linux/utils/kernel/kexec/"
SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="lzma xen zlib"
DEPEND="
lzma? ( app-arch/xz-utils )
zlib? ( sys-libs/zlib )"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}/${PN}-2.0.0-respect-LDFLAGS.patch"
# to disable the -fPIE -pie in the hardened compiler
if gcc-specs-pie ; then
filter-flags -fPIE
append-ldflags -nopie
fi
# gcc 4.6 compatibility (bug #361069)
sed -i 's/--no-undefined/-Wl,--no-undefined/g' purgatory/Makefile || die "sed failed"
}
src_configure() {
# GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC)
export ASFLAGS="${CCASFLAGS}"
econf $(use_with lzma) $(use_with xen) $(use_with zlib)
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
doman kexec/kexec.8 || die "doman failed"
dodoc News AUTHORS TODO || die "dodoc failed"
newinitd "${FILESDIR}"/kexec.init-ng kexec || die
newconfd "${FILESDIR}"/kexec.conf kexec || die
}

View File

@ -1,48 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/kexec-tools-2.0.3-r1.ebuild,v 1.1 2012/03/18 07:46:02 jlec Exp $
EAPI=4
inherit eutils flag-o-matic linux-info
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
HOMEPAGE="http://kernel.org/pub/linux/utils/kernel/kexec/"
SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="booke lzma xen zlib"
DEPEND="
lzma? ( app-arch/xz-utils )
zlib? ( sys-libs/zlib )"
RDEPEND="${DEPEND}"
CONFIG_CHECK="~KEXEC"
src_prepare() {
epatch "${FILESDIR}/${PN}-2.0.0-respect-LDFLAGS.patch"
# to disable the -fPIE -pie in the hardened compiler
if gcc-specs-pie ; then
filter-flags -fPIE
append-ldflags -nopie
fi
}
src_configure() {
# GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC)
export ASFLAGS="${CCASFLAGS}"
econf $(use_with lzma) $(use_with xen) $(use_with zlib) $(use_with booke)
}
src_install() {
default
dodoc "${FILESDIR}"/README.Gentoo
newinitd "${FILESDIR}"/kexec.init-${PV} kexec
newconfd "${FILESDIR}"/kexec.conf-${PV} kexec
}

View File

@ -1,44 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/kexec-tools-2.0.3.ebuild,v 1.1 2012/02/16 22:13:00 jlec Exp $
EAPI=4
inherit eutils flag-o-matic
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
HOMEPAGE="http://kernel.org/pub/linux/utils/kernel/kexec/"
SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="booke lzma xen zlib"
DEPEND="
lzma? ( app-arch/xz-utils )
zlib? ( sys-libs/zlib )"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}/${PN}-2.0.0-respect-LDFLAGS.patch"
# to disable the -fPIE -pie in the hardened compiler
if gcc-specs-pie ; then
filter-flags -fPIE
append-ldflags -nopie
fi
}
src_configure() {
# GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC)
export ASFLAGS="${CCASFLAGS}"
econf $(use_with lzma) $(use_with xen) $(use_with zlib) $(use_with booke)
}
src_install() {
default
newinitd "${FILESDIR}"/kexec.init-ng kexec
newconfd "${FILESDIR}"/kexec.conf kexec
}

View File

@ -1,54 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/kexec-tools-2.0.4-r1.ebuild,v 1.1 2013/03/30 13:01:49 jlec Exp $
EAPI=5
inherit eutils flag-o-matic linux-info
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
HOMEPAGE="http://kernel.org/pub/linux/utils/kernel/kexec/"
SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="booke lzma xen zlib"
DEPEND="
lzma? ( app-arch/xz-utils )
zlib? ( sys-libs/zlib )"
RDEPEND="${DEPEND}"
CONFIG_CHECK="~KEXEC"
src_prepare() {
epatch \
"${FILESDIR}"/${PN}-2.0.0-respect-LDFLAGS.patch \
"${FILESDIR}"/${P}-disable-kexec-test.patch
# to disable the -fPIE -pie in the hardened compiler
if gcc-specs-pie ; then
filter-flags -fPIE
append-ldflags -nopie
fi
}
src_configure() {
# GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC)
export ASFLAGS="${CCASFLAGS}"
econf \
$(use_with booke) \
$(use_with lzma) \
$(use_with xen) \
$(use_with zlib)
}
src_install() {
default
dodoc "${FILESDIR}"/README.Gentoo
newinitd "${FILESDIR}"/kexec.init-${PV} kexec
newconfd "${FILESDIR}"/kexec.conf-${PV} kexec
}

View File

@ -1,39 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/kexec-tools-9999.ebuild,v 1.7 2011/09/21 08:31:54 mgorny Exp $
EAPI=2
EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git"
inherit git-2 autotools
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
HOMEPAGE="http://kernel.org/pub/linux/utils/kernel/kexec/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="xen zlib"
DEPEND="zlib? ( sys-libs/zlib )"
RDEPEND="${DEPEND}"
src_unpack() {
git-2_src_unpack
cd "${S}"
eautoreconf
}
src_configure() {
econf $(use_with zlib) $(use_with xen)
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
doman kexec/kexec.8
dodoc News AUTHORS TODO doc/*.txt
newinitd "${FILESDIR}"/kexec.init kexec || die
newconfd "${FILESDIR}"/kexec.conf kexec || die
}

View File

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>kernel-misc</herd>
<maintainer>
<email>jlec@gentoo.org</email>
</maintainer>
<use>
<flag name="lzma">Enables support for LZMA compressed kernel images</flag>
<flag name="booke">Include support for Book-E memory management</flag>
<flag name="xen">Enable extended xen support</flag>
</use>
</pkgmetadata>