-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig-default
50 lines (42 loc) · 1.62 KB
/
config-default
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
ISO_ARCH=x86_64
pre_build() {
# add custom/rootoverlay to airootfs
cp -rvT /custom/rootoverlay airootfs
[ -d "/custom/rootoverlays/$LIVECD_PROFILE" ] && cp -rvT "/custom/rootoverlays/$LIVECD_PROFILE" airootfs
# grub: no beep
sed -i '/^# GRUB init tune for accessibility$/,/^$/s/^play/# play/g' grub/grub.cfg
# sdboot: no beep
sed -i 's/beep on/beep off/g' efiboot/loader/loader.conf
# add archiso_pxe_dns to mkinitcpio.conf
sed -i 's/archiso_pxe_common/archiso_pxe_dns archiso_pxe_common/g' airootfs/etc/mkinitcpio.conf.d/archiso.conf
# add ntfs-3g to mkinitcpio.conf
echo >> airootfs/etc/mkinitcpio.conf.d/archiso.conf
echo 'BINARIES+=(mount.ntfs)' >> airootfs/etc/mkinitcpio.conf.d/archiso.conf
# no customize_airootfs.sh? no problem
mkdir -p airootfs/etc/pacman.d/hooks
cat << EOF > airootfs/etc/pacman.d/hooks/zzzz98-customize-airootfs.hook
# remove from airootfs!
[Trigger]
Operation = Install
Type = Package
Target = base
[Action]
Description = Running customize-airootfs...
When = PostTransaction
Exec = /bin/sh -c "systemctl disable sshd reflector && \
passwd -d root"
EOF
# pkglist check
compatver=v81
compatlink="https://gitlab.archlinux.org/archlinux/archiso/-/blob/${compatver}/configs/releng/packages.x86_64"
compatraw="https://gitlab.archlinux.org/archlinux/archiso/-/raw/${compatver}/configs/releng/packages.x86_64"
curl -L -o packages.x86_64.compat "$compatraw"
diff packages.x86_64 packages.x86_64.compat
rm packages.x86_64.compat
# alter packages
cat << EOF >> packages.x86_64
EOF
cat << EOF > packages.x86_64.remove
broadcom-wl
EOF
}