genkernel removed
This commit is contained in:
parent
dc79479194
commit
55b15088c9
|
@ -1,9 +0,0 @@
|
||||||
DIST LVM2.2.02.88.tgz 1029151 SHA256 a129d1d3949524da7d6d2a67218254baea02df06a6744faa5808a4182b2fb432 SHA512 5c334c2c78220f4f9f082a74cbf0b156e96f2a07b5e55f054ff70c752ada97a67f83fa1d89c02accb7cbe5a62e356588831d96a102b7bf16cdce2591d4e37e4b WHIRLPOOL b30a1f2403e71ff6fb381ec82291018632e1d10258dd615efae4e39077a304a66271013247793390f57c26886599d8bad8f4b896d230f3e4f846e74c12282f71
|
|
||||||
DIST busybox-1.20.2.tar.bz2 2186738 SHA256 eb13ff01dae5618ead2ef6f92ba879e9e0390f9583bd545d8789d27cf39b6882 SHA512 089b67cd920f332daf910711739b1e55ba4c76cfa2122dfe5464432e0d76d3af8327837ebc3cc9954deef3e8f766d16a1928aecb2c169fe3de5a722eea7ea3dd WHIRLPOOL aa8fec92d0ac8bb246dea7353537d425a5fecfa0bb807d0e291c7351e8289b84aab83303c45b75f9b7a98cd10177e210511064f0709425c2f84b069fe6a06420
|
|
||||||
DIST dmraid-1.0.0.rc16-3.tar.bz2 232743 SHA256 93421bd169d71ff5e7d2db95b62b030bfa205a12010b6468dcdef80337d6fbd8 SHA512 7c45e5117adc52fc2094b1b2bad4f4c518a46317a2196611966d72085ba3587c4ac8d1080f9d934888c01788f2b2d3d621c6f0d3e2a023c0fb1f9f3fa7fc127e WHIRLPOOL 87915ea0013766da8a9722b437bfe146b4b2c7560a7814ac6caab92054ddc3b4b59ceb4d413609d5eaab92b5cee67886ade7924455f1dba19f1b8dabc25d3498
|
|
||||||
DIST fuse-2.8.6.tar.gz 505334 SHA256 1ec1913e38f09b2a9ec1579e1800805b5e2c747d1dce515e316dbb665ca139d6 SHA512 03cacc45c8ba6700fcdfa9064ef4e10d3ad6fc0e4fc49d41693de2caf03d44513d449b00a7c5d200d055d9481821252509259f5f3d2d6127fa51957a006a90fd WHIRLPOOL 668c01f5ae9742f3e70248d6d2b57cbeaa0decf93d5f7987550fe54d4ebdb6e445ff841e8d36a60a4824c114651b8a93b118e15b8a00ac30ddc813e583fa2b51
|
|
||||||
DIST genkernel-3.4.50.tar.bz2 273874 SHA256 d1450b9a38837147f3ec2600bcd05a56df5537a1d9de0c41db123833a5f2f450 SHA512 8b56c0736abaffa1c04dd1315d38ed35be46b72a2e20b5602e946dbabde9c05a66691d3059306f58a17f436124912dd0b39ccc012fff8562b1531cfcb90e7d28 WHIRLPOOL 09d88f2013267021e792b784850057472b40d216b45c8cd8f67c9340c30ee4cdf8161beaa7fd628fb71755a35fed6e64adddd9b957f5c5b7698207fb70d4a7e4
|
|
||||||
DIST gnupg-1.4.11.tar.bz2 3407075 SHA256 d18ceeac16e554a501170b9bfde611625252d0fe9448685a69c93bf149ee6ef6 SHA512 97e7b8b0f972cc2f7cabdb0e013cbee1c33e7d48407d040cca5c2037e32abe1c2100194be7d3b569d4f05eb16b24c205a5b83f06718f0241f8d4ee174f1c37ae WHIRLPOOL 6f914627e2f527f6616e1f99d2ae06942b734f839d03a45ffa45bf67516a81d58f89e6a85612cf8e5fd83be04ab0b6bc2da8f81114143dad7523e5fcea62366b
|
|
||||||
DIST mdadm-3.1.5.tar.bz2 292709 SHA256 1d547d0b36a88968e9fc9fb08b0e64de54a53f3d1cfa3656a9f319180f0727d3 SHA512 6fcf426d63ede01f99ebeee9be686857a04f9b601b37f76722c091ae2999b3ff66fdba52d47323f27900553125a897fc1815fe7be850aa9cc991dd5fa91a5d5d WHIRLPOOL 003595a1338b3a95ccc176b07a31f26dd5fda9460f2c4d3513b9ca09cdab1c91dab05f8914f2354047fccff42c4dcfc6131a383c84467c2838ac7b1af2f9bef8
|
|
||||||
DIST open-iscsi-2.0-872.tar.gz 900081 SHA256 37753697a170223ac02a292b3a23a315a3c747b490c42480e4057b676c9f8d4f SHA512 d26c87772b0b1d13a8bd2eea9db86b3c61af83efbb788116c01ab6a914ff3de634a7b1bff56c1161b28965315543edbfc2735b6c7fbd3f7797471fde63b69cc0 WHIRLPOOL 4b04c8481c6c5f094ca6f7761828006a84eda7a22a6b3a4d65e7b3e4b39e73ef839ec710b491e7ca731b047fa8c74a9c03a17e85519a62dfbeb95222cfbdd935
|
|
||||||
DIST unionfs-fuse-0.24.tar.bz2 30381 SHA256 d8abc855eb618ac356b1e716599c82f8f0f74dbaee36d4062edc707567121937 SHA512 e0e414f4edbf641ec9d0135a8723e43fc75412359b482f7aedd66fe8245e4df03943c5ecb6f8de4fdbd97f0346033c691e766cc4f4a755f5b43748e1441d3fbd WHIRLPOOL dc132086d9614895961dc8b498c435145b4390fc80331e0575ee8420faea0201325ab2394b9090d8f721c602ef1f93e150573b1b88b77ee4f7be4a262103b986
|
|
|
@ -1,18 +0,0 @@
|
||||||
--- defaults/linuxrc.orig 2012-10-06 14:42:04.000000000 -0700
|
|
||||||
+++ defaults/linuxrc 2012-10-06 14:43:01.000000000 -0700
|
|
||||||
@@ -2,6 +2,7 @@
|
|
||||||
|
|
||||||
. /etc/initrd.defaults
|
|
||||||
. /etc/initrd.scripts
|
|
||||||
+. /etc/initrd.fsck
|
|
||||||
|
|
||||||
splash() {
|
|
||||||
return 0
|
|
||||||
@@ -864,6 +865,7 @@
|
|
||||||
# In this case, it's probably part of the filesystem
|
|
||||||
# and not a mountpoint
|
|
||||||
[ -z "$dev" ] && continue
|
|
||||||
+ check_filesystem $dev
|
|
||||||
fstype=$(get_mount_fstype $fs)
|
|
||||||
if get_mount_options $fs | fgrep -q bind ; then
|
|
||||||
opts='bind'
|
|
|
@ -1,73 +0,0 @@
|
||||||
# genkernel (8) completion
|
|
||||||
# Copyright 2006 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# Written by Aron Griffis <agriffis@gentoo.org>
|
|
||||||
|
|
||||||
_genkernel()
|
|
||||||
{
|
|
||||||
declare cur prev genkernel_help actions params
|
|
||||||
COMPREPLY=()
|
|
||||||
cur=${COMP_WORDS[COMP_CWORD]}
|
|
||||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
|
||||||
|
|
||||||
# extract initial list of params/actions from genkernel --help
|
|
||||||
genkernel_help=$(command genkernel --help)
|
|
||||||
actions=( $(<<<"$genkernel_help" sed -n \
|
|
||||||
'/^Available Actions:/,/^$/s/^[[:space:]]\+\([^[:space:]]\+\).*/\1/p') )
|
|
||||||
params=( $(<<<"$genkernel_help" egrep -oe '--[^[:space:]]{2,}') )
|
|
||||||
|
|
||||||
# attempt to complete the current parameter based on the list
|
|
||||||
COMPREPLY=($(compgen -W "${params[*]/=*/=} ${actions[*]}" -- "$cur"))
|
|
||||||
|
|
||||||
# if we don't have a rhs to complete
|
|
||||||
if [[ ${#COMPREPLY[@]} -gt 1 ]]; then
|
|
||||||
return
|
|
||||||
elif [[ ${#COMPREPLY[@]} -eq 0 && $cur != --*=* ]]; then
|
|
||||||
return
|
|
||||||
elif [[ ${#COMPREPLY[@]} -eq 1 && $COMPREPLY != --*= ]]; then
|
|
||||||
# using nospace completion, add an explicit space
|
|
||||||
COMPREPLY="${COMPREPLY} "
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# we have a unique lhs and need to complete the rhs
|
|
||||||
declare args lhs rhs
|
|
||||||
if [[ ${#COMPREPLY[@]} -eq 1 ]]; then
|
|
||||||
lhs=$COMPREPLY
|
|
||||||
else
|
|
||||||
lhs=${cur%%=*}=
|
|
||||||
rhs=${cur#*=}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# genkernel's help gives clues as to what belongs on the rhs.
|
|
||||||
# extract the clue for the current parameter
|
|
||||||
args=" ${params[*]} "
|
|
||||||
args="${args##* $lhs}"
|
|
||||||
args="${args%% *}"
|
|
||||||
|
|
||||||
# generate a list of completions for the argument; this replaces args with
|
|
||||||
# an array of results
|
|
||||||
args=( $(case $args in
|
|
||||||
('<0-5>') compgen -W "$(echo {1..5})" -- "$rhs" ;;
|
|
||||||
('<outfile>'|'<file>') compgen -A file -o plusdirs -- "$rhs" ;;
|
|
||||||
('<dir>') compgen -A directory -S / -- "$rhs" ;;
|
|
||||||
('<tbz2>') compgen -G '*.tbz2' -G '*.tar.bz2' -o plusdirs -- "$rhs" ;;
|
|
||||||
(*) compgen -o bashdefault -- "$rhs" ;; # punt
|
|
||||||
esac) )
|
|
||||||
|
|
||||||
# we're using nospace completion to prevent spaces after paths that aren't
|
|
||||||
# "done" yet. So do some hacking to the args to add spaces after
|
|
||||||
# non-directories.
|
|
||||||
declare slash=/
|
|
||||||
args=( "${args[@]/%/ }" ) # add space to all
|
|
||||||
args=( "${args[@]/%$slash /$slash}" ) # remove space from dirs
|
|
||||||
|
|
||||||
# recreate COMPREPLY
|
|
||||||
if [[ $cur == "$lhs"* ]]; then
|
|
||||||
COMPREPLY=( "${args[@]}" )
|
|
||||||
elif [[ ${#args[@]} -gt 0 ]]; then
|
|
||||||
COMPREPLY=( "${args[@]/#/$lhs}" )
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
complete -o nospace -F _genkernel genkernel
|
|
|
@ -1,23 +0,0 @@
|
||||||
# This specifies which mounts from your fstab should be mounted before
|
|
||||||
# switching to the real root. If this file is missing, genkernel's code will
|
|
||||||
# default to just "/usr", which will suffice on most systems with a seperate
|
|
||||||
# /usr mount.
|
|
||||||
#
|
|
||||||
# If you have a complex configuration with a bindmount or symlink at /usr, or
|
|
||||||
# need some other mountpoints at boot, you should update this file such that
|
|
||||||
# /usr and anything else needed will be available after the switch into the
|
|
||||||
# real root.
|
|
||||||
#
|
|
||||||
# The lines without comments in this file are used as exact matches against the
|
|
||||||
# second column of your /etc/fstab and the device, fstype and mount options are
|
|
||||||
# taken from that line in fstab. If no line matches, the line from this file
|
|
||||||
# will be ignored.
|
|
||||||
#
|
|
||||||
|
|
||||||
/usr
|
|
||||||
|
|
||||||
# If you had some need of these:
|
|
||||||
#/usr/local
|
|
||||||
#/opt
|
|
||||||
#/var
|
|
||||||
#/home
|
|
|
@ -1,50 +0,0 @@
|
||||||
#!/bin/ash
|
|
||||||
|
|
||||||
. /etc/initrd.defaults
|
|
||||||
. /etc/initrd.scripts
|
|
||||||
|
|
||||||
check_filesystem() {
|
|
||||||
# most of code coming from /etc/init.d/fsck
|
|
||||||
|
|
||||||
local fsck_opts= check_extra= RC_UNAME=$(uname -s)
|
|
||||||
|
|
||||||
# FIXME : get_bootparam forcefsck
|
|
||||||
if [ -e /forcefsck ]; then
|
|
||||||
fsck_opts="$fsck_opts -f"
|
|
||||||
check_extra="(check forced)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
good_msg "Checking local filesystem $check_extra : $1"
|
|
||||||
|
|
||||||
if [ "$RC_UNAME" = Linux ]; then
|
|
||||||
fsck_opts="$fsck_opts -C0 -T"
|
|
||||||
fi
|
|
||||||
|
|
||||||
trap : INT QUIT
|
|
||||||
|
|
||||||
# using our own fsck, not the builtin one from busybox
|
|
||||||
/sbin/fsck -p $fsck_opts $1
|
|
||||||
|
|
||||||
case $? in
|
|
||||||
0) return 0;;
|
|
||||||
1) good_msg "Filesystem repaired"; return 0;;
|
|
||||||
2|3) if [ "$RC_UNAME" = Linux ]; then
|
|
||||||
good_msg "Filesystem repaired, but reboot needed"
|
|
||||||
reboot -f
|
|
||||||
else
|
|
||||||
bad_msg "Filesystem still has errors; manual fsck required"
|
|
||||||
fi;;
|
|
||||||
4) if [ "$RC_UNAME" = Linux ]; then
|
|
||||||
bad_msg "Fileystem errors left uncorrected, aborting"
|
|
||||||
do_rundebugshell
|
|
||||||
else
|
|
||||||
good_msg "Filesystem repaired, but reboot needed"
|
|
||||||
reboot
|
|
||||||
fi;;
|
|
||||||
8) bad_msg "Operational error"; return 0;;
|
|
||||||
12) bad_msg "fsck interrupted";;
|
|
||||||
*) bad_msg "Filesystem couldn't be fixed";;
|
|
||||||
esac
|
|
||||||
do_rundebugshell
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
/lib64/libext2fs.so.2
|
|
||||||
/lib64/libcom_err.so.2
|
|
||||||
/lib64/libmount.so.1
|
|
||||||
/lib64/libblkid.so.1
|
|
||||||
/lib64/libuuid.so.1
|
|
||||||
/lib64/libe2p.so.2
|
|
||||||
/lib64/libc.so.6
|
|
||||||
/lib64/libpthread.so.0
|
|
|
@ -1,5 +0,0 @@
|
||||||
/sbin/fsck
|
|
||||||
/sbin/fsck.ext2
|
|
||||||
/sbin/fsck.ext3
|
|
||||||
/sbin/fsck.ext4
|
|
||||||
/sbin/fsck.jfs
|
|
|
@ -1,198 +0,0 @@
|
||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: $
|
|
||||||
|
|
||||||
# genkernel-9999 -> latest Git branch "master"
|
|
||||||
# genkernel-VERSION -> normal genkernel release
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
|
|
||||||
VERSION_BUSYBOX='1.20.2'
|
|
||||||
VERSION_DMRAID='1.0.0.rc16-3'
|
|
||||||
VERSION_MDADM='3.1.5'
|
|
||||||
VERSION_FUSE='2.8.6'
|
|
||||||
VERSION_ISCSI='2.0-872'
|
|
||||||
VERSION_LVM='2.02.88'
|
|
||||||
VERSION_UNIONFS_FUSE='0.24'
|
|
||||||
VERSION_GPG='1.4.11'
|
|
||||||
|
|
||||||
RH_HOME="ftp://sources.redhat.com/pub"
|
|
||||||
DM_HOME="http://people.redhat.com/~heinzm/sw/dmraid/src"
|
|
||||||
BB_HOME="http://www.busybox.net/downloads"
|
|
||||||
|
|
||||||
COMMON_URI="${DM_HOME}/dmraid-${VERSION_DMRAID}.tar.bz2
|
|
||||||
${DM_HOME}/old/dmraid-${VERSION_DMRAID}.tar.bz2
|
|
||||||
mirror://kernel/linux/utils/raid/mdadm/mdadm-${VERSION_MDADM}.tar.bz2
|
|
||||||
${RH_HOME}/lvm2/LVM2.${VERSION_LVM}.tgz
|
|
||||||
${RH_HOME}/lvm2/old/LVM2.${VERSION_LVM}.tgz
|
|
||||||
${BB_HOME}/busybox-${VERSION_BUSYBOX}.tar.bz2
|
|
||||||
http://www.open-iscsi.org/bits/open-iscsi-${VERSION_ISCSI}.tar.gz
|
|
||||||
mirror://sourceforge/fuse/fuse-${VERSION_FUSE}.tar.gz
|
|
||||||
http://podgorny.cz/unionfs-fuse/releases/unionfs-fuse-${VERSION_UNIONFS_FUSE}.tar.bz2
|
|
||||||
mirror://gnupg/gnupg/gnupg-${VERSION_GPG}.tar.bz2"
|
|
||||||
|
|
||||||
if [[ ${PV} == 9999* ]]
|
|
||||||
then
|
|
||||||
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/${PN}.git
|
|
||||||
http://git.overlays.gentoo.org/gitroot/proj/${PN}.git"
|
|
||||||
inherit git-2 bash-completion-r1 eutils
|
|
||||||
S="${WORKDIR}/${PN}"
|
|
||||||
SRC_URI="${COMMON_URI}"
|
|
||||||
KEYWORDS=""
|
|
||||||
else
|
|
||||||
inherit bash-completion-r1 eutils
|
|
||||||
SRC_URI="mirror://gentoo/${P}.tar.bz2
|
|
||||||
${COMMON_URI}"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="Gentoo automatic kernel building scripts"
|
|
||||||
HOMEPAGE="http://www.gentoo.org"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
RESTRICT=""
|
|
||||||
IUSE="crypt cryptsetup ibm premount selinux" # Keep 'crypt' in to keep 'use crypt' below working!
|
|
||||||
|
|
||||||
DEPEND="sys-fs/e2fsprogs
|
|
||||||
premount? ( sys-fs/jfsutils )
|
|
||||||
selinux? ( sys-libs/libselinux )"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
cryptsetup? ( sys-fs/cryptsetup )
|
|
||||||
app-arch/cpio
|
|
||||||
>=app-misc/pax-utils-0.2.1
|
|
||||||
!<sys-apps/openrc-0.9.9"
|
|
||||||
# pax-utils is used for lddtree
|
|
||||||
|
|
||||||
if [[ ${PV} == 9999* ]]; then
|
|
||||||
DEPEND="${DEPEND} app-text/asciidoc"
|
|
||||||
fi
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == 9999* ]] ; then
|
|
||||||
git-2_src_unpack
|
|
||||||
else
|
|
||||||
unpack ${P}.tar.bz2
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if [[ ${PV} == 9999* ]] ; then
|
|
||||||
einfo "Producing ChangeLog from Git history..."
|
|
||||||
pushd "${S}/.git" >/dev/null || die
|
|
||||||
git log > "${S}"/ChangeLog || die
|
|
||||||
popd >/dev/null || die
|
|
||||||
fi
|
|
||||||
use selinux && sed -i 's/###//g' "${S}"/gen_compile.sh
|
|
||||||
|
|
||||||
# Update software.sh
|
|
||||||
sed -i \
|
|
||||||
-e "s:VERSION_BUSYBOX:$VERSION_BUSYBOX:" \
|
|
||||||
-e "s:VERSION_MDADM:$VERSION_MDADM:" \
|
|
||||||
-e "s:VERSION_DMRAID:$VERSION_DMRAID:" \
|
|
||||||
-e "s:VERSION_FUSE:$VERSION_FUSE:" \
|
|
||||||
-e "s:VERSION_ISCSI:$VERSION_ISCSI:" \
|
|
||||||
-e "s:VERSION_LVM:$VERSION_LVM:" \
|
|
||||||
-e "s:VERSION_UNIONFS_FUSE:$VERSION_UNIONFS_FUSE:" \
|
|
||||||
-e "s:VERSION_GPG:$VERSION_GPG:" \
|
|
||||||
"${S}"/defaults/software.sh \
|
|
||||||
|| die "Could not adjust versions"
|
|
||||||
|
|
||||||
if use premount ; then
|
|
||||||
epatch ${FILESDIR}/${PN}-add-fsck-premount.patch
|
|
||||||
install ${FILESDIR}/libs_list ${WORKDIR}
|
|
||||||
sed -i -e "s|lib64|$(get_libdir)|" ${WORKDIR}/libs_list
|
|
||||||
fi
|
|
||||||
|
|
||||||
epatch_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
if [[ ${PV} == 9999* ]]; then
|
|
||||||
emake || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /etc
|
|
||||||
doins "${S}"/genkernel.conf || die "doins genkernel.conf"
|
|
||||||
|
|
||||||
doman genkernel.8 || die "doman"
|
|
||||||
dodoc AUTHORS ChangeLog README TODO || die "dodoc"
|
|
||||||
|
|
||||||
dobin genkernel || die "dobin genkernel"
|
|
||||||
|
|
||||||
rm -f genkernel genkernel.8 AUTHORS ChangeLog README TODO genkernel.conf
|
|
||||||
|
|
||||||
insinto /usr/share/genkernel
|
|
||||||
doins -r "${S}"/* || die "doins"
|
|
||||||
use ibm && cp "${S}"/ppc64/kernel-2.6-pSeries "${S}"/ppc64/kernel-2.6 || \
|
|
||||||
cp "${S}"/arch/ppc64/kernel-2.6.g5 "${S}"/arch/ppc64/kernel-2.6
|
|
||||||
|
|
||||||
# Copy files to /var/cache/genkernel/src
|
|
||||||
GKDISTDIR=/usr/share/genkernel/distfiles/
|
|
||||||
elog "Copying files to ${GKDISTDIR}..."
|
|
||||||
insinto $GKDISTDIR
|
|
||||||
doins "${DISTDIR}"/mdadm-${VERSION_MDADM}.tar.bz2
|
|
||||||
doins "${DISTDIR}"/dmraid-${VERSION_DMRAID}.tar.bz2
|
|
||||||
doins "${DISTDIR}"/LVM2.${VERSION_LVM}.tgz
|
|
||||||
doins "${DISTDIR}"/busybox-${VERSION_BUSYBOX}.tar.bz2
|
|
||||||
doins "${DISTDIR}"/fuse-${VERSION_FUSE}.tar.gz
|
|
||||||
doins "${DISTDIR}"/unionfs-fuse-${VERSION_UNIONFS_FUSE}.tar.bz2
|
|
||||||
doins "${DISTDIR}"/gnupg-${VERSION_GPG}.tar.bz2
|
|
||||||
doins "${DISTDIR}"/open-iscsi-${VERSION_ISCSI}.tar.gz
|
|
||||||
|
|
||||||
newbashcomp "${FILESDIR}"/genkernel.bash "${PN}"
|
|
||||||
insinto /etc
|
|
||||||
doins "${FILESDIR}"/initramfs.mounts
|
|
||||||
|
|
||||||
use premount && gen_files
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
echo
|
|
||||||
elog 'Documentation is available in the genkernel manual page'
|
|
||||||
elog 'as well as the following URL:'
|
|
||||||
echo
|
|
||||||
elog 'http://www.gentoo.org/doc/en/genkernel.xml'
|
|
||||||
echo
|
|
||||||
ewarn "This package is known to not work with reiser4. If you are running"
|
|
||||||
ewarn "reiser4 and have a problem, do not file a bug. We know it does not"
|
|
||||||
ewarn "work and we don't plan on fixing it since reiser4 is the one that is"
|
|
||||||
ewarn "broken in this regard. Try using a sane filesystem like ext3 or"
|
|
||||||
ewarn "even reiser3."
|
|
||||||
echo
|
|
||||||
ewarn "The LUKS support has changed from versions prior to 3.4.4. Now,"
|
|
||||||
ewarn "you use crypt_root=/dev/blah instead of real_root=luks:/dev/blah."
|
|
||||||
echo
|
|
||||||
if use crypt && ! use cryptsetup ; then
|
|
||||||
ewarn "Local use flag 'crypt' has been renamed to 'cryptsetup' (bug #414523)."
|
|
||||||
ewarn "Please set flag 'cryptsetup' for this very package if you would like"
|
|
||||||
ewarn "to have genkernel create an initramfs with LUKS support."
|
|
||||||
ewarn "Sorry for the inconvenience."
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use premount ; then
|
|
||||||
elog ""
|
|
||||||
ewarn "Don't forget to enable the overlay in genkernel.conf."
|
|
||||||
ewarn "An initial overlay with ext and jfs support has been"
|
|
||||||
ewarn "created for you in /usr/share/genkernel/overlay."
|
|
||||||
elog ""
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
gen_files() {
|
|
||||||
# generate overlay files for premount fsck support
|
|
||||||
|
|
||||||
overlay="${D}usr/share/genkernel/overlay"
|
|
||||||
mkdir -p $overlay/etc
|
|
||||||
mkdir -p $overlay/sbin
|
|
||||||
mkdir -p $overlay/$(get_libdir)
|
|
||||||
|
|
||||||
pushd $overlay > /dev/null
|
|
||||||
cp ${FILESDIR}/initrd.fsck $overlay/etc
|
|
||||||
cat ${WORKDIR}/libs_list | xargs cp -t $overlay/$(get_libdir)
|
|
||||||
cat ${FILESDIR}/sbin_list | xargs cp -t $overlay/sbin
|
|
||||||
popd > /dev/null
|
|
||||||
}
|
|
Loading…
Reference in New Issue