Merge branch 'master' of git://git.wolf31o2.org/projs/genkernel

cleanup-cruft
craig 16 years ago
commit 18d9c84402

@ -3,6 +3,25 @@
# Distributed under the GPL v2 # Distributed under the GPL v2
# $Id$ # $Id$
22 Sep 2009; <tsunam@gentoo.org> ChangeLog:
modified the libaio search so it'll actually work, cause I'm a dork
21 Sep 2009; <tsunam@gentoo.org> gen_initramfs.sh:
Fix broken libraries for multipath per Gentoo bug #284592
21 Sep 2009; <tsunam@gentoo.org> gen_initramfs.sh:
Update to fix broken initramfs caused by multipath config in Gentoo bug #284589
05 Sep 2009; Andrew Gaffney <agaffney@gentoo.org> defaults/initrd.scripts,
defaults/linuxrc:
Apply patch from Gentoo bug #220913 for tuxonice resume
14 Aug 2009; Andrew Gaffney <agaffney@gentoo.org> genkernel.conf:
Enable DISKLABEL=yes by default
05 Aug 2009; Andrew Gaffney <agaffney@gentoo.org> genkernel:
This is genkernel 3.4.10.906
25 Jul 2009; Chris Gianelloni <wolf31o2@wolf31o2.org> genkernel.conf, 25 Jul 2009; Chris Gianelloni <wolf31o2@wolf31o2.org> genkernel.conf,
.gitattributes: .gitattributes:
Adding Id header and Ident for genkernel.conf Adding Id header and Ident for genkernel.conf

@ -867,24 +867,30 @@ rundebugshell() {
fi fi
} }
do_resume() {
if [ -d /proc/suspend2 -o -d /sys/power/suspend2 -o -d /sys/power/tuxonice ]; then
tuxonice_resume
else
swsusp_resume
fi
}
swsusp_resume() { swsusp_resume() {
# determine swap resume partition # determine swap resume partition
local device=$(ls -lL "${REAL_RESUME}" | sed 's/\ */ /g' | cut -d \ -f 5-6 | sed 's/,\ */:/') local device=$(ls -lL "${REAL_RESUME}" | sed 's/\ */ /g' | cut -d \ -f 5-6 | sed 's/,\ */:/')
[ -f /sys/power/resume ] && echo "${device}" > /sys/power/resume [ -f /sys/power/resume ] && echo "${device}" > /sys/power/resume
return 0
} }
tuxonice_resume() { tuxonice_resume() {
[ -d /proc/suspend2 -o -d /sys/power/suspend2 -o -d /sys/power/tuxonice ] || return
local splash_theme local splash_theme
if grep "splash=" /proc/cmdline > /dev/null 2>&1; then if grep "splash=" /proc/cmdline > /dev/null 2>&1; then
splash_theme=$(cat /proc/cmdline | sed 's/.*splash=/splash=/' | sed 's/ .*//' | sed 's/.*theme://' | sed 's/,.*//') splash_theme=$(cat /proc/cmdline | sed 's/.*splash=/splash=/' | sed 's/ .*//' | sed 's/.*theme://' | sed 's/,.*//')
fi fi
local tuxonice_userui_program="/sys/power/tuxonice/user_interface/program" local tuxonice_userui_program="/sys/power/tuxonice/user_interface/program"
local tuxonice_do_resume="/sys/power/tuxonice/do_resume" local tuxonice_do_resume="/sys/power/tuxonice/do_resume"
local tuxonice_resumedev="/sys/power/tuxonice/resume"
local tuxonice_replace_swsusp="/sys/power/tuxonice/replace_swsusp"
# #
# Backward compatibility # Backward compatibility
@ -892,13 +898,27 @@ tuxonice_resume() {
if [ -e /sys/power/suspend2 ]; then if [ -e /sys/power/suspend2 ]; then
tuxonice_userui_program="/sys/power/suspend2/user_interface/program" tuxonice_userui_program="/sys/power/suspend2/user_interface/program"
tuxonice_do_resume="/sys/power/suspend2/do_resume" tuxonice_do_resume="/sys/power/suspend2/do_resume"
tuxonice_resumedev="/sys/power/suspend2/resume"
tuxonice_replace_swsusp="/sys/power/suspend2/replace_swsusp"
elif [ -e /proc/suspend2 ]; then elif [ -e /proc/suspend2 ]; then
tuxonice_userui_program="/proc/suspend2/userui_program" tuxonice_userui_program="/proc/suspend2/userui_program"
tuxonice_do_resume="/proc/suspend2/do_resume" tuxonice_do_resume="/proc/suspend2/do_resume"
tuxonice_resumedev="/proc/suspend2/resume"
tuxonice_replace_swsusp="/proc/suspend2/replace_swsusp"
fi
# if 'use_swsusp' is given, use swsusp instead
if grep "use_swsusp" /proc/cmdline > /dev/null 2>&1; then
echo 0 > ${tuxonice_replace_swsusp}
swsusp_resume
return
fi fi
modules_scan tuxonice modules_scan tuxonice
# we both configure tuxonice and activate resuming,
# however the kernel will resume only if an image is found
if ! grep suspend_noui /proc/cmdline > /dev/null 2>&1; then if ! grep suspend_noui /proc/cmdline > /dev/null 2>&1; then
which suspend2ui_text > /dev/null 2>&1 && which suspend2ui_text > "${tuxonice_userui_program}" which suspend2ui_text > /dev/null 2>&1 && which suspend2ui_text > "${tuxonice_userui_program}"
which tuxoniceui_text > /dev/null 2>&1 && which tuxoniceui_text > "${tuxonice_userui_program}" which tuxoniceui_text > /dev/null 2>&1 && which tuxoniceui_text > "${tuxonice_userui_program}"
@ -911,8 +931,9 @@ tuxonice_resume() {
which tuxoniceui_fbsplash > /dev/null 2>&1 && which tuxoniceui_fbsplash > "${tuxonice_userui_program}" which tuxoniceui_fbsplash > /dev/null 2>&1 && which tuxoniceui_fbsplash > "${tuxonice_userui_program}"
fi fi
echo > "${tuxonice_do_resume}"
fi fi
echo "${REAL_RESUME}" > "${tuxonice_resumedev}"
echo > "${tuxonice_do_resume}"
} }
find_loop() { find_loop() {

@ -178,7 +178,7 @@ do
swap_keydev\=*) swap_keydev\=*)
CRYPT_SWAP_KEYDEV=`parse_opt "${x}"` CRYPT_SWAP_KEYDEV=`parse_opt "${x}"`
;; ;;
real_resume\=*) real_resume\=*|resume\=*)
REAL_RESUME=`parse_opt "${x}"` REAL_RESUME=`parse_opt "${x}"`
;; ;;
noresume) noresume)
@ -313,9 +313,7 @@ then
;; ;;
esac esac
swsusp_resume do_resume
# suspend_resume
tuxonice_resume
fi fi
fi fi

@ -138,12 +138,18 @@ append_multipath(){
mkdir -p "${TEMP}/initramfs-multipath-temp/lib/" mkdir -p "${TEMP}/initramfs-multipath-temp/lib/"
# Copy files to /lib # Copy files to /lib
for i in /lib/{ld-*,libc-*,libc.*,libdl-*,libdl.*,libsysfs*so*,libdevmapper*so*} for i in /lib/{ld-*,libc-*,libc.*,libdl-*,libdl.*,libsysfs*so*,libdevmapper*so*,libpthread*,librt*,libreadline*,libncurses*}
do do
cp -a "${i}" "${TEMP}/initramfs-multipath-temp/lib" \ cp -a "${i}" "${TEMP}/initramfs-multipath-temp/lib" \
|| gen_die "Could not copy file ${i} for MULTIPATH" || gen_die "Could not copy file ${i} for MULTIPATH"
done done
for i in /usr/lib/libaio*
do
cp -a "${i}" "${TEMP}/initramfs-multipath-temp/lib" \
|| gen_die "Could not copy file ${i} for MULTIPATH"
done
# Copy files to /sbin # Copy files to /sbin
for i in /sbin/{multipath,kpartx,mpath_prio_*,devmap_name,dmsetup} /lib64/udev/scsi_id for i in /sbin/{multipath,kpartx,mpath_prio_*,devmap_name,dmsetup} /lib64/udev/scsi_id
do do
@ -166,7 +172,7 @@ append_multipath(){
then then
cp /etc/scsi_id.config "${TEMP}/initramfs-multipath-temp/etc/" || gen_die 'could not copy scsi_id.config' cp /etc/scsi_id.config "${TEMP}/initramfs-multipath-temp/etc/" || gen_die 'could not copy scsi_id.config'
fi fi
cd "${TEMP/initramfs-multipath-temp/}" cd "${TEMP}/initramfs-multipath-temp"
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}"
rm -r "${TEMP}/initramfs-multipath-temp/" rm -r "${TEMP}/initramfs-multipath-temp/"
} }

@ -2,7 +2,7 @@
# $Id$ # $Id$
PATH="${PATH}:/sbin:/usr/sbin" PATH="${PATH}:/sbin:/usr/sbin"
GK_V='3.4.10.905' GK_V='3.4.10.906'
# Set the default for TMPDIR. May be modified by genkernel.conf or the # Set the default for TMPDIR. May be modified by genkernel.conf or the
# --tempdir command line option. # --tempdir command line option.

@ -78,7 +78,7 @@ USECOLOR="yes"
# FIRMWARE_FILES="" # FIRMWARE_FILES=""
# Enable disklabel support (copies blkid to initrd) # Enable disklabel support (copies blkid to initrd)
# DISKLABEL="yes" DISKLABEL="yes"
# Add new kernel to grub? # Add new kernel to grub?
# BOOTLOADER="grub" # BOOTLOADER="grub"

Loading…
Cancel
Save