Compare commits

..

No commits in common. "ed95da5244986702f53a28e40d3086921842865d" and "f1ee7c85dd3c274de16f08ad0ae93ca79da8d9b7" have entirely different histories.

4 changed files with 9 additions and 15 deletions

View File

@ -55,7 +55,7 @@ There are a couple manual steps to get started before the installer scripts can
- Download and run stage 1 of the USB installation script - Download and run stage 1 of the USB installation script
- The base image doesnt come with a way to download files so you need to install that first: `xbps-install -S wget` - The base image doesnt come with a way to download files so you need to install that first: `xbps-install -S wget`
- If it yells at you about updating xbps, do that, then try again - If it yells at you about updating xbps, do that, then try again
- `wget https://lostcave.ddnss.de/git/BodgeMaster/void-usb/raw/branch/master/install-stage1.sh` - `wget https://lostcave.ddnss.de/git/BodgeMaster/void-minecraft-usb/raw/branch/master/install-stage1.sh`
- `bash install-stage1.sh` - `bash install-stage1.sh`
The scripts will take it from there, asking you for information and downloading things as needed. The scripts will take it from there, asking you for information and downloading things as needed.

View File

@ -175,15 +175,13 @@ 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 -t tmpfs none /mnt/target/run >> $LOGFILE 2>&1 mount --rbind /run /mnt/target/run >> $LOGFILE 2>&1
mkdir /mnt/target/proc >> $LOGFILE 2>&1 mkdir /mnt/target/proc >> $LOGFILE 2>&1
mount -t proc proc /mnt/target/proc >> $LOGFILE 2>&1 mount --rbind /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
@ -211,7 +209,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

View File

@ -141,7 +141,7 @@ useradd -m -s /bin/bash -G wheel "$NEW_USER"
passwd "$NEW_USER" passwd "$NEW_USER"
echo "Cleaning up installation files..." echo "Cleaning up installation files..."
mv /etc/sv/agetty-tty1/conf.bak /etc/sv/agetty-tty1/conf >> $LOGFILE 2>&1 mv /mnt/target/etc/sv/agetty-tty1/conf.bak /mnt/target/etc/sv/agetty-tty1/conf >> $LOGFILE 2>&1
if [ -f /root/.profile.bak ]; then if [ -f /root/.profile.bak ]; then
mv /root/.profile.bak /root/.profile mv /root/.profile.bak /root/.profile
else else

View File

@ -97,14 +97,10 @@ if $DONT_ASK || yesno; then
echo_tty "Building image..." echo_tty "Building image..."
mksquashfs / /run/void-usb/container/new_squashfs.img -b 1M -comp xz -progress -noappend -pf /run/void-usb/system-image-pseudo -ef /run/void-usb/system-image-excludes > $TTY_OR_CONSOLE mksquashfs / /run/void-usb/container/new_squashfs.img -b 1M -comp xz -progress -noappend -pf /run/void-usb/system-image-pseudo -ef /run/void-usb/system-image-excludes > $TTY_OR_CONSOLE
if [ "$?" -ne 0 ]; then
echo_tty "An error ocurred while generating the image. It will be discarded." echo_tty -n "Moving new image in place... "
sleep 5 mv /run/void-usb/container/new_squashfs.img /run/void-usb/container/squashfs.img
else echo_tty "done"
echo_tty -n "Moving new image in place... "
mv /run/void-usb/container/new_squashfs.img /run/void-usb/container/squashfs.img
echo_tty "done"
fi
else else
echo_tty "Discarding system changes." echo_tty "Discarding system changes."
fi fi