install stage 1: apply learnings from Gentoo (chroot mounting) and hopefully fix musl support
parent
8b98b2e160
commit
ed95da5244
|
|
@ -175,13 +175,15 @@ mount -t tmpfs -o size=3g,mode=755 tmpfs /mnt/target >> $LOGFILE 2>&1
|
||||||
|
|
||||||
# used for chroot later
|
# used for chroot later
|
||||||
mkdir /mnt/target/run >> $LOGFILE 2>&1
|
mkdir /mnt/target/run >> $LOGFILE 2>&1
|
||||||
mount --rbind /run /mnt/target/run >> $LOGFILE 2>&1
|
mount -t tmpfs none /mnt/target/run >> $LOGFILE 2>&1
|
||||||
mkdir /mnt/target/proc >> $LOGFILE 2>&1
|
mkdir /mnt/target/proc >> $LOGFILE 2>&1
|
||||||
mount --rbind /proc /mnt/target/proc >> $LOGFILE 2>&1
|
mount -t proc proc /mnt/target/proc >> $LOGFILE 2>&1
|
||||||
mkdir /mnt/target/sys >> $LOGFILE 2>&1
|
mkdir /mnt/target/sys >> $LOGFILE 2>&1
|
||||||
mount --rbind /sys /mnt/target/sys >> $LOGFILE 2>&1
|
mount --rbind /sys /mnt/target/sys >> $LOGFILE 2>&1
|
||||||
|
mount --make-rslave /mnt/target/sys >> $LOGFILE 2>&1
|
||||||
mkdir /mnt/target/dev >> $LOGFILE 2>&1
|
mkdir /mnt/target/dev >> $LOGFILE 2>&1
|
||||||
mount --rbind /dev /mnt/target/dev >> $LOGFILE 2>&1
|
mount --rbind /dev /mnt/target/dev >> $LOGFILE 2>&1
|
||||||
|
mount --make-rslave /mnt/target/dev >> $LOGFILE 2>&1
|
||||||
|
|
||||||
# actual storage
|
# actual storage
|
||||||
mkdir -p /mnt/target/run/void-usb/container >> $LOGFILE 2>&1
|
mkdir -p /mnt/target/run/void-usb/container >> $LOGFILE 2>&1
|
||||||
|
|
@ -209,7 +211,7 @@ TARGET_MIRROR="$(sed 's/repository=//;s|/musl$||' /etc/xbps.d/00-repository-main
|
||||||
|
|
||||||
|
|
||||||
#TODO: allow only 32 bit on a 32 bit system
|
#TODO: allow only 32 bit on a 32 bit system
|
||||||
options=("x86_64" "x86_64 musl" "x86_32")
|
options=("x86_64" "x86_64-musl" "x86_32")
|
||||||
while true; do
|
while true; do
|
||||||
echo "Select your desired architecture."
|
echo "Select your desired architecture."
|
||||||
for i in "${!options[@]}"; do
|
for i in "${!options[@]}"; do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue