Compare commits

..

9 Commits

Author SHA1 Message Date
799434029f i really hope this works. 2014-12-23 15:09:57 -05:00
f9a3310a0a oh, why the hell not. 2014-12-23 14:59:46 -05:00
5d2d7b14c9 think i figured out the bug with the build.. 2014-12-23 14:52:32 -05:00
4d06a97213 package updates, and it keeps dying on this strange point in the build. 2014-12-23 11:13:49 -05:00
10363febf1 more packages ignored... 2014-12-22 21:15:21 -05:00
85957d4373 fixing chroot logging 2014-12-22 15:29:52 -05:00
ddfdf83463 updating packages.both... 2014-12-22 12:16:13 -05:00
51473b2403 build failure... 2014-12-21 19:28:57 -05:00
ca15a97fcd fixing package.. 2014-12-21 14:54:24 -05:00
4 changed files with 54 additions and 14 deletions

View File

@@ -74,7 +74,8 @@ LOGFILE="${BASEDIR}/logs/$(date +%s)"
# What should the regular username be? (Automatically logged in on boot)
REGUSR="${UXNAME}"
# Should the REGUSR have a password? IF THIS IS NOT SET, THE PASSWORD WILL BE BLANK!
# Should the REGUSR have a password? IF THIS IS NOT SET, PASSWORD LOGIN WILL BE DISABLED!
# If you wish to have a blank password, use the string "{[BLANK]}".
# Do NOT use a plaintext password here. You will need to generate a salted and hashed string
# in a shadow-compatible format.
# Debian can do this with the mkpasswd utility (it's in Arch's AUR as debian-whois-mkpasswd):
@@ -88,8 +89,22 @@ REGUSR="${UXNAME}"
# /sbin/grub-crypt --sha-512
# The end-product should look something like this:
# $6$aBcDeFgHiJ$Yh342vFH7MOjPNu9InFymD1Dd42i5cFsr1cTWdpKGNIkbRGR/ZKQDRPJ1ZeeGb7y894Tfh3iWZIJKu3phlsqQ1
#
# Note that if you want an automatic login, this is *not* where it would be set.
# It should instead be controlled via overlay/etc/systemd/system/getty@ttyN.service.d/autologin.conf
# In the following format:
# [Service]
# Type=idle
# ExecStart=
# ExecStart=-/usr/bin/agetty --autologin <USERNAME> --noclear %I 38400 linux
# (where N is the TTY number). Alternatively, if booting to a GUI, it can be set as according
# to that GUI (e.g. for LXDE, overlay/etc/lxdm/lxdm.conf, "autologin=<USERNAME>")
REGUSR_PASS=""
# Same exact thing as REGUSR_PASS, but for the root password (i.e. if no password hash is
# specified, password login will be disabled, etc.).
ROOT_PASS=""
# Do we have enough horsepower on the build system to jack up the resources we throw at building?
# Enabling this will give absolute CPU preference to building the kernels and do make-time
# enhancements/optimizations (i.e. use the maximum number of CPU cores detected).

View File

@@ -75,7 +75,7 @@ ed
efibootmgr
efivar
elfutils
elilo-efi
#elilo-efi
elinks
etc-update
ethtool
@@ -138,14 +138,15 @@ iso-codes
isomaster
jasper
jfsutils
john-mpi
#john-mpi
john
keyutils
kismet-allplugins
libisoburn
lftp
links
localepurge
logkeys
#logkeys
logkeys-keymaps
lm_sensors
lrzsz
@@ -177,7 +178,7 @@ mtd-utils
mtools
mtr
mtree
mtx
#mtx
multipath-tools
myrescue
nbd
@@ -217,7 +218,7 @@ php
php-fpm
php-gd
php-mcrypt
phrasendrescher
#phrasendrescher
pigz
pkgfile
pkgtools
@@ -240,7 +241,6 @@ rdiff-backup
read-edid
reaver
rename
rescan-scsi-bus
rfkill
rp-pppoe
rpcbind
@@ -270,7 +270,7 @@ s-nail
socat
squashfs3-tools
squashfs-tools
star
#star
strace
stress
sucrack
@@ -318,6 +318,7 @@ whdd
whois
wifite
wipe
wireshark-cli
wpscrack
wput
x11vnc

View File

@@ -202,8 +202,8 @@ EOF
echo -n "Regular packages..."
set +e
${CHROOTCMD} ${i}/ bash -c "yes '' | yaourt -S --needed --noconfirm ${PKGLIST}" >> "${LOGFILE}.${FUNCNAME}" 2>&1
set -e
for x in $(find ${i}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%%.pacorig} ; done
set -e
echo -n "...Creating ${REGUSR} user..."
${CHROOTCMD} ${i}/ useradd -m -s /bin/bash -c "Default user" ${REGUSR} >> "${LOGFILE}.${FUNCNAME}" 2>&1
${CHROOTCMD} ${i}/ usermod -aG users,games,video,audio ${REGUSR} >> "${LOGFILE}.${FUNCNAME}" 2>&1
@@ -212,15 +212,30 @@ EOF
echo "${REGUSR} ALL=(ALL) ALL" >> ${i}/etc/sudoers.d/${REGUSR}
if [ -n "${REGUSR_PASS}" ];
then
${CHROOTCMD} ${i}/ echo "${REGUSR}:${REGUSR_PASS}" | chpasswd -e
${CHROOTCMD} ${i}/ "echo ${REGUSR}:${REGUSR_PASS} | chpasswd -e" >> "${LOGFILE}.${FUNCNAME}" 2>&1
elif [[ "${REGUSR_PASS}" == '{[BLANK]}' ]];
then
continue
else
sed -i -e "s/^${REGUSR}::/${REGUSR}:!:/g" ${i}/etc/shadow
fi
# COMMENT THIS LINE IF YOU WANT TO SET A ROOT PASSWORD
${CHROOTCMD} ${i}/ usermod -L root
if [ -n "${ROOT_PASS}" ];
then
${CHROOTCMD} ${i}/ "echo ${root}:${ROOT_PASS} | chpasswd -e" >> "${LOGFILE}.${FUNCNAME}" 2>&1
elif [[ "${ROOT_PASS}" == '{[BLANK]}' ]];
then
continue
else
sed -i -e 's/^root::/root:!:/g' ${i}/etc/shadow
fi
# The following is supposed to do the same as the above, but "cleaner". However, it currently fails with "execv() failed: No such file or directory"
##${CHROOTCMD} ${i}/ usermod -L root >> "${LOGFILE}.${FUNCNAME}" 2>&1
echo "Done."
done
for i in ${CHROOTDIR32} ${CHROOTDIR64};
do
echo "[DEBUG] ${i}: mkinitcpio" >> "${LOGFILE}.${FUNCNAME}" 2>&1
${CHROOTCMD} ${i}/ bash -c "mkinitcpio -p linux-${PNAME}" >> "${LOGFILE}.${FUNCNAME}" 2>&1
done
@@ -229,9 +244,13 @@ EOF
PKGLIST=$(sed -e '/^[[:space:]]*#/d ; /^[[:space:]]*$/d' ${BASEDIR}/extra/packages.32 | tr '\n' ' ')
if [ -n "${PKGLIST}" ];
then
echo "[DEBUG] 32-bit: installing packages" >> "${LOGFILE}.${FUNCNAME}" 2>&1
${CHROOTCMD} ${CHROOTDIR32}/ bash -c "yaourt -S --needed --noconfirm ${PKGLIST}" >> "${LOGFILE}.${FUNCNAME}" 2>&1
fi
for x in $(find ${CHROOTDIR32}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%.pacorig} ; done
set +e
for x in $(find ${CHROOTDIR32}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%.pacorig} ; done
echo "[DEBUG] 32-bit: pacorig move" >> "${LOGFILE}.${FUNCNAME}" 2>&1
set -e
echo "Done."
# 64-bit
@@ -239,9 +258,13 @@ EOF
PKGLIST=$(sed -e '/^[[:space:]]*#/d ; /^[[:space:]]*$/d' ${BASEDIR}/extra/packages.64 | tr '\n' ' ')
if [ -n "${PKGLIST}" ];
then
echo "[DEBUG] 64-bit: installing packages" >> "${LOGFILE}.${FUNCNAME}" 2>&1
${CHROOTCMD} ${CHROOTDIR64}/ bash -c "yaourt -S --needed --noconfirm ${PKGLIST}" >> "${LOGFILE}.${FUNCNAME}" 2>&1
fi
for x in $(find ${CHROOTDIR64}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%.pacorig} ; done
set +e
for x in $(find ${CHROOTDIR64}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%.pacorig} ; done
echo "[DEBUG] 64-bit: pacorig move" >> "${LOGFILE}.${FUNCNAME}" 2>&1
set -e
echo "Done."
echo "Syncing overlay..."

View File

@@ -0,0 +1 @@
/usr/lib/systemd/system/openvpn@.service