tweak fixin's, documentation
This commit is contained in:
@@ -19,11 +19,19 @@ build()
|
||||
|
||||
add_runscript
|
||||
|
||||
# Normally, archiso does this for us. But we don't want to use the build.sh they provide, so we perform it in a more minimal version here.
|
||||
if [ -f /root/pubkey.gpg ];
|
||||
then
|
||||
add_binary "/usr/bin/gpg"
|
||||
mkdir -p "${BUILDROOT}${dest}"/gpg
|
||||
gpg --homedir "${BUILDROOT}${dest}"/gpg --import /root/pubkey.gpg
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
help()
|
||||
{
|
||||
cat <<HELPEOF
|
||||
Mount a squashed flat-file directory with OverlayFS on /, add SSL support
|
||||
Mount a squashed flat-file directory with OverlayFS on /, add SSL support, and add GPG support (if needed) for BDisk.
|
||||
HELPEOF
|
||||
}
|
||||
|
||||
@@ -20,6 +20,11 @@ exec 1>/var/log/chroot_install.log 2>&1
|
||||
|
||||
# we need this fix before anything.
|
||||
dirmngr </dev/null
|
||||
gpg --batch --yes --import /root/pubkey.gpg
|
||||
# This is unnecessary as we have no private key
|
||||
#gpg --batch --yes --lsign-key 0x${SIGKEY}
|
||||
|
||||
exec 17<>/root/pubkey.gpg
|
||||
|
||||
cleanPacorigs()
|
||||
{
|
||||
@@ -78,7 +83,10 @@ chown aurbuild:aurbuild /var/empty/.gnupg
|
||||
chmod 700 /var/empty/.gnupg
|
||||
cleanPacorigs
|
||||
apacman -Syy
|
||||
apacman -S --noconfirm --noedit --skipinteg --needed -S apacman apacman-deps apacman-utils expac
|
||||
for p in apacman apacman-deps apacman-utils expac;
|
||||
do
|
||||
apacman -S --noconfirm --noedit --skipinteg --needed -S "${p}"
|
||||
done
|
||||
apacman --gendb
|
||||
cleanPacorigs
|
||||
# Install multilib-devel if we're in an x86_64 chroot.
|
||||
@@ -132,7 +140,7 @@ then
|
||||
cleanPacorigs
|
||||
fi
|
||||
# Add the regular user
|
||||
useradd -m -s /bin/bash -c "Default user" ${REGUSR}
|
||||
useradd -m -s /bin/bash -c "${USERCOMMENT}" ${REGUSR}
|
||||
usermod -aG users,games,video,audio ${REGUSR}
|
||||
passwd -d ${REGUSR}
|
||||
# Add them to sudoers
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
export DISTNAME='{{ bdisk['name']|upper }}'
|
||||
export UXNAME='{{ bdisk['name']|lower }}'
|
||||
export PNAME='{{ bdisk['name'] }}'
|
||||
export DISTPUB='{{ bdisk['dev'] }}'
|
||||
export DISTDESC='{{ bdisk['desc'] }}'
|
||||
export REGUSR='{{ bdisk['name']|lower }}'
|
||||
export REGUSR_PASS='{{ user['password'] }}'
|
||||
export ROOT_PASS='{{ bdisk['root_password'] }}'
|
||||
|
||||
0
extra/templates/overlay/i686/.keepme.j2
Normal file
0
extra/templates/overlay/i686/.keepme.j2
Normal file
0
extra/templates/overlay/x86_64/.keepme.j2
Normal file
0
extra/templates/overlay/x86_64/.keepme.j2
Normal file
0
extra/templates/pre-build.d/i686/.keepme.j2
Normal file
0
extra/templates/pre-build.d/i686/.keepme.j2
Normal file
0
extra/templates/pre-build.d/x86_64/.keepme.j2
Normal file
0
extra/templates/pre-build.d/x86_64/.keepme.j2
Normal file
Reference in New Issue
Block a user