bash
This commit is contained in:
parent
6b4fca0353
commit
ddb600ead2
34 changed files with 770 additions and 343 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
prog=$( basename $0 .bash )
|
||||
ROLE=base
|
||||
PYVER=3
|
||||
LOG_DIR=/usr/local/var/logs/portage
|
||||
[ -d $LOG_DIR ] || mkdir -p $LOG_DIR
|
||||
|
||||
|
@ -37,15 +38,16 @@ LARGS="$LARGS --noreplace"
|
|||
# LARGS="$LARGS --exclude "
|
||||
LOG=$LOG_DIR/$LOG
|
||||
export PYTHONPATH=
|
||||
echo INFO: $LARGS $ARGS >> $LOG 2>&1
|
||||
nice python$BASE_PYTHON3_MINOR $( which emerge ) $LARGS $ARGS >> $LOG 2>&1
|
||||
[ $? -ne 0 ] && exit $?
|
||||
echo INFO: emerge $LARGS $ARGS |tee -a $LOG >&2
|
||||
nice python$PYVER $( which emerge ) $LARGS $ARGS >> $LOG 2>&1
|
||||
retval=$?
|
||||
[ $retval -ne 0 ] && echo ERROR: $retval $LOG && tail $LOG && exit $retval
|
||||
if grep ImportError $LOG ; then
|
||||
echo ERROR: ImportError $ARGS && exit 10
|
||||
echo ERROR: ImportError $LOG && exit 10
|
||||
elif grep ParseError $LOG ; then
|
||||
echo ERROR: ParseError $ARGS && exit 11
|
||||
echo ERROR: ParseError $LOG && exit 11
|
||||
elif grep 'Your current profile is invalid' $LOG ; then
|
||||
echo ERROR: Your current profile is invalid $ARGS && exit 12
|
||||
echo ERROR: Your current profile is invalid $LOG && exit 12
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -27,7 +27,7 @@ gpg2 --verify --keyring $keyf $BASE_PORTDIR/Manifest >/tmp/K$$.log 2>&1 || exit
|
|||
grep 'using RSA key' /tmp/K$$.log || exit 4
|
||||
grep 'Primary key fingerprint:' /tmp/K$$.log | sed -e 's/.*: //' -e 's/ //g' > /tmp/K$$.key || exit 5
|
||||
|
||||
if route | grep -q ^default ; then
|
||||
if grep -q "^wlan[1-9][ ]00000000" /proc/net/route ; then
|
||||
. /root/bin/tor.sh
|
||||
wget -O /tmp/K$$.html https://www.gentoo.org/downloads/signatures/ || exit 0
|
||||
grep "`cat /tmp/K$$.key`" /tmp/K$$.html || {
|
||||
|
|
28
overlay/Gentoo/usr/local/share/genkernel/overlay.bash
Executable file
28
overlay/Gentoo/usr/local/share/genkernel/overlay.bash
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/sh
|
||||
|
||||
ROLE=gpgkey
|
||||
|
||||
cd /usr/local/share/genkernel/overlay
|
||||
|
||||
[ -d dev ] || mkdir dev
|
||||
cd dev
|
||||
[ -e urandom ] || mknod urandom c 1 9
|
||||
chmod 666 urandom
|
||||
cd ..
|
||||
|
||||
[ -d sbin ] || mkdir sbin
|
||||
cd sbin
|
||||
[ -f staticgpggrid ] || cp -p /usr/local/bin/staticgpggrid .
|
||||
[ -f staticgpg ] || cp -p /usr/local/bin/staticgpg .
|
||||
chmod 755 static*
|
||||
cd ..
|
||||
|
||||
cd /
|
||||
cat /usr/local/share/genkernel/overlay.list | \
|
||||
tar cf - -T - \
|
||||
tar xvf - -C /usr/local/share/genkernel/overlay
|
||||
|
||||
find -L /usr/local/share/genkernel/overlay -type l
|
||||
|
||||
|
||||
exit 0
|
43
overlay/Gentoo/usr/local/share/genkernel/overlay.list
Normal file
43
overlay/Gentoo/usr/local/share/genkernel/overlay.list
Normal file
|
@ -0,0 +1,43 @@
|
|||
bin/busybox
|
||||
bin/keyctl
|
||||
bin/kmod
|
||||
bin/lsmod
|
||||
bin/nano
|
||||
etc/conf.d/keymaps
|
||||
etc/keymaps/linux-with-altgr.inc
|
||||
etc/keymaps/us.map
|
||||
etc/modprobe.d/blacklist.conf
|
||||
lib/ld-linux.so.2
|
||||
lib64/ld-linux-x86-64.so.2
|
||||
lib64/libacl.so.1
|
||||
lib64/libacl.so.1.1.2301
|
||||
lib64/libblkid.so.1
|
||||
lib64/libblkid.so.1.1.0
|
||||
lib64/libc.so.6
|
||||
lib64/libcap.so.2
|
||||
lib64/libcap.so.2.65
|
||||
lib64/libkmod.so.2
|
||||
lib64/libkmod.so.2.4.0
|
||||
lib64/liblzma.so.5
|
||||
lib64/liblzma.so.5.2.5
|
||||
lib64/libm.so.6
|
||||
lib64/libpthread.so.0
|
||||
lib64/libz.so.1
|
||||
lib64/libz.so.1.2.12
|
||||
lib64/libzstd.so.1
|
||||
lib64/libzstd.so.1.5.2
|
||||
sbin/e2label
|
||||
sbin/fdisk
|
||||
sbin/modprobe
|
||||
sbin/tune2fs
|
||||
usr/bin/clear
|
||||
usr/bin/mg
|
||||
usr/bin/ntfs-3g
|
||||
usr/local/bin/gridfire.pyi
|
||||
usr/local/bin/staticgpg
|
||||
usr/local/bin/staticgpggrid
|
||||
usr/share/consolefonts/ter-v24b.psf.gz
|
||||
usr/share/consolefonts/ter-v28b.psf.gz
|
||||
usr/share/keymaps/i386/include/euro.map.gz
|
||||
usr/share/keymaps/i386/include/qwerty-layout.inc
|
||||
usr/share/keymaps/include/compose.latin
|
Loading…
Add table
Add a link
Reference in a new issue