Fix prepare.sh and run_before_squashfs.sh errors for missing files
This commit is contained in:
@@ -10,6 +10,9 @@ wget -qN --show-progress -P "airootfs/root/" "https://raw.githubusercontent.com/
|
|||||||
wget -qN --show-progress -P "airootfs/root/" "https://raw.githubusercontent.com/Antergos/wallpapers/master/antergos-wallpaper.png"
|
wget -qN --show-progress -P "airootfs/root/" "https://raw.githubusercontent.com/Antergos/wallpapers/master/antergos-wallpaper.png"
|
||||||
cp airootfs/root/antergos-wallpaper.png airootfs/root/livewall.png
|
cp airootfs/root/antergos-wallpaper.png airootfs/root/livewall.png
|
||||||
|
|
||||||
|
# Get Antergos icon for SDDM avatar
|
||||||
|
wget -qN --show-progress -O "airootfs/root/liveuser.png" "https://avatars.githubusercontent.com/u/17977612"
|
||||||
|
|
||||||
# Build liveuser skel
|
# Build liveuser skel
|
||||||
cd "airootfs/root/antergos-skel-liveuser"
|
cd "airootfs/root/antergos-skel-liveuser"
|
||||||
makepkg -f
|
makepkg -f
|
||||||
|
|||||||
@@ -89,8 +89,10 @@ usermod -s /usr/bin/bash root
|
|||||||
|
|
||||||
echo "---> Create liveuser --->"
|
echo "---> Create liveuser --->"
|
||||||
useradd -m -p "" -g 'liveuser' -G 'sys,rfkill,wheel,uucp,nopasswdlogin,adm,tty' -s /bin/bash liveuser
|
useradd -m -p "" -g 'liveuser' -G 'sys,rfkill,wheel,uucp,nopasswdlogin,adm,tty' -s /bin/bash liveuser
|
||||||
|
if [[ -f "/root/liveuser.png" ]]; then
|
||||||
cp "/root/liveuser.png" "/var/lib/AccountsService/icons/liveuser"
|
cp "/root/liveuser.png" "/var/lib/AccountsService/icons/liveuser"
|
||||||
rm "/root/liveuser.png"
|
rm "/root/liveuser.png"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "---> Remove liveuser skel to clean for target skel --"
|
echo "---> Remove liveuser skel to clean for target skel --"
|
||||||
pacman -Sy
|
pacman -Sy
|
||||||
@@ -107,12 +109,14 @@ echo "------------------" >> "/etc/motd"
|
|||||||
|
|
||||||
echo "---> Install locally built packages on ISO (place packages under airootfs/root/packages) --->"
|
echo "---> Install locally built packages on ISO (place packages under airootfs/root/packages) --->"
|
||||||
echo "--> content of /root/packages:"
|
echo "--> content of /root/packages:"
|
||||||
ls "/root/packages/"
|
ls "/root/packages/" 2>&1 || echo " (empty - no local packages)"
|
||||||
echo "end of content of /root/packages. <---"
|
echo "end of content of /root/packages. <---"
|
||||||
|
|
||||||
|
if [[ -d "/root/packages/" ]]; then
|
||||||
pacman -Sy
|
pacman -Sy
|
||||||
pacman -U --noconfirm --needed -- "/root/packages/"*".pkg.tar.zst"
|
pacman -U --noconfirm --needed -- "/root/packages/"*".pkg.tar.zst"
|
||||||
rm -rf "/root/packages/"
|
rm -rf "/root/packages/"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "---> Enable systemd services in case needed --->"
|
echo "---> Enable systemd services in case needed --->"
|
||||||
echo " --> per default now in airootfs/etc/systemd/system/multi-user.target.wants"
|
echo " --> per default now in airootfs/etc/systemd/system/multi-user.target.wants"
|
||||||
@@ -129,7 +133,9 @@ chmod 644 "/usr/share/antergos/backgrounds/"*".png"
|
|||||||
|
|
||||||
echo "---> Install Antergos icon --->"
|
echo "---> Install Antergos icon --->"
|
||||||
mkdir -p "/usr/share/antergos"
|
mkdir -p "/usr/share/antergos"
|
||||||
|
if [[ -f "/root/liveuser.png" ]]; then
|
||||||
cp "/root/liveuser.png" "/usr/share/antergos/antergos-icon.png"
|
cp "/root/liveuser.png" "/usr/share/antergos/antergos-icon.png"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "---> install bash configs back into /etc/skel for offline install target --->"
|
echo "---> install bash configs back into /etc/skel for offline install target --->"
|
||||||
cp -af "/root/filebackups/"{".bashrc",".bash_profile"} "/etc/skel/"
|
cp -af "/root/filebackups/"{".bashrc",".bash_profile"} "/etc/skel/"
|
||||||
|
|||||||
Reference in New Issue
Block a user