forked from endeavouros-team/EndeavourOS-ISO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprepare.sh
executable file
·24 lines (17 loc) · 932 Bytes
/
prepare.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
# Get mirrorlist for offline installs
wget -qN --show-progress -P "airootfs/etc/pacman.d/" "https://raw.githubusercontent.com/endeavouros-team/EndeavourOS-ISO/main/mirrorlist"
# Get default mkinitcpio.conf
wget -qN --show-progress -P "airootfs/root/" "https://raw.githubusercontent.com/archlinux/mkinitcpio/master/mkinitcpio.conf"
# Get wallpaper for installed system
wget -qN --show-progress -P "airootfs/root/" "https://raw.githubusercontent.com/endeavouros-team/endeavouros-theming/master/backgrounds/endeavouros-wallpaper.png"
# Make sure build scripts are executable
chmod +x "./"{"mkarchiso","prepare.sh","run_before_squashfs.sh"}
get_pkg() {
sudo pacman -Sw "$1" --noconfirm --cachedir "airootfs/root/packages" \
&& sudo chown $USER:$USER "airootfs/root/packages/"*".pkg.tar"*
}
get_pkg "endeavouros-skel-xfce4"
# Build liveuser skel
cd "airootfs/root/endeavouros-skel-liveuser"
makepkg -f