git » mk-builders.git » main » tree

[main] / make-bootstrap64.sh

#!/bin/bash
set -e
BSN=bootstrap64
BS=/$BSN
mkdir -p $BS/var/lib/pacman
pacman --config bs64-pacman.conf -Sy -b $BS/var/lib/pacman -r $BS
pacman --config bs64-pacman.conf -S --noscriptlet -b $BS/var/lib/pacman -r $BS bootstrap
mkdir -p /sources/pkg/aarch64/bootstrap
cp bs64-pacman.conf $BS/etc/pacman.conf
cp bootstrapper-initial.sh $BS/initial.sh
cd $BS
mount -t proc proc proc
mount -t sysfs sys sys
mount --bind /dev dev
chmod +x ./initial.sh
chroot . ./initial.sh
systemd-machine-id-setup --root=$BS
umount proc sys dev
rm ./initial.sh
cd -
echo "Done."