Add amf_return return code everywhere
This commit is contained in:
parent
3fcf5a6a96
commit
4c4b8b624c
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
amf_return=0
|
||||||
|
|
||||||
dirmngr &
|
dirmngr &
|
||||||
pacman-key --populate
|
pacman-key --populate || amf_return=1
|
||||||
pacman-key --refresh-keys
|
pacman-key --refresh-keys || amf_return=1
|
||||||
|
@ -14,3 +14,5 @@ echo "~> Creating .xinitrc"
|
|||||||
echo "xcompmgr -c &" > $path/.xinitrc
|
echo "xcompmgr -c &" > $path/.xinitrc
|
||||||
echo "feh --bg-fill ~/background.jpg" >> $path/.xinitrc
|
echo "feh --bg-fill ~/background.jpg" >> $path/.xinitrc
|
||||||
echo "exec i3" >> $path/.xinitrc
|
echo "exec i3" >> $path/.xinitrc
|
||||||
|
|
||||||
|
amf_return=0
|
||||||
|
@ -6,3 +6,5 @@ pacstrap /mnt sudo
|
|||||||
echo "~> Create group sudo and patch sudoers file"
|
echo "~> Create group sudo and patch sudoers file"
|
||||||
arch-chroot /mnt groupadd sudo
|
arch-chroot /mnt groupadd sudo
|
||||||
arch-chroot /mnt sed -i "s/^# %sudo/%sudo/g" /etc/sudoers
|
arch-chroot /mnt sed -i "s/^# %sudo/%sudo/g" /etc/sudoers
|
||||||
|
|
||||||
|
amf_return=0
|
||||||
|
@ -5,3 +5,5 @@ echo "~> Grabbing a random image from unsplash.com..."
|
|||||||
mkdir -p /mnt/etc/wallpapers/
|
mkdir -p /mnt/etc/wallpapers/
|
||||||
|
|
||||||
wget https://unsplash.com/photos/$(curl https://unsplash.com/search/photos/forest | grep -oE "photo=([a-zA-Z0-9_\\-]*)" | shuf -n 1 | sed -e "s/photo=//g")/download -O /mnt/etc/wallpapers/forest.jpg
|
wget https://unsplash.com/photos/$(curl https://unsplash.com/search/photos/forest | grep -oE "photo=([a-zA-Z0-9_\\-]*)" | shuf -n 1 | sed -e "s/photo=//g")/download -O /mnt/etc/wallpapers/forest.jpg
|
||||||
|
|
||||||
|
amf_return=0
|
||||||
|
@ -2,3 +2,5 @@
|
|||||||
|
|
||||||
echo "~> Installing packages to be a virtualbox guest"
|
echo "~> Installing packages to be a virtualbox guest"
|
||||||
pacstrap /mnt virtualbox-guest-utils virtualbox-guest-modules-arch
|
pacstrap /mnt virtualbox-guest-utils virtualbox-guest-modules-arch
|
||||||
|
|
||||||
|
amf_return=0
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
pacstrap /mnt dialog wpa_supplicant
|
pacstrap /mnt dialog wpa_supplicant
|
||||||
|
|
||||||
|
amf_return=0
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
pacstrap /mnt xorg xorg-xinit xterm
|
pacstrap /mnt xorg xorg-xinit xterm
|
||||||
|
|
||||||
|
amf_return=0
|
||||||
|
@ -26,3 +26,5 @@ echo "~> Mount partitions"
|
|||||||
mount $rootformat /mnt
|
mount $rootformat /mnt
|
||||||
mkdir -p /mnt/boot
|
mkdir -p /mnt/boot
|
||||||
mount ${blockdevice}1 /mnt/boot
|
mount ${blockdevice}1 /mnt/boot
|
||||||
|
|
||||||
|
amf_return=0
|
||||||
|
@ -2,3 +2,5 @@
|
|||||||
|
|
||||||
echo "~> Installing 'base' group and 'grub', 'efibootmgr'"
|
echo "~> Installing 'base' group and 'grub', 'efibootmgr'"
|
||||||
pacstrap /mnt base grub efibootmgr
|
pacstrap /mnt base grub efibootmgr
|
||||||
|
|
||||||
|
amf_return=0
|
||||||
|
@ -33,3 +33,5 @@ echo "HOOKS=\"base udev autodetect modconf block keyboard keymap encrypt filesys
|
|||||||
|
|
||||||
echo "~> ... and recompile the kernel"
|
echo "~> ... and recompile the kernel"
|
||||||
arch-chroot /mnt mkinitcpio -p linux
|
arch-chroot /mnt mkinitcpio -p linux
|
||||||
|
|
||||||
|
amf_return=0
|
||||||
|
Loading…
Reference in New Issue
Block a user