-
Notifications
You must be signed in to change notification settings - Fork 1
/
config-aarch64-default
38 lines (31 loc) · 1.1 KB
/
config-aarch64-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
ISO_ARCH=aarch64
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 ! TODO: update aarch64 mkarchiso
# sed -i '/^# GRUB init tune for accessibility$/,/^$/s/^play/# play/g' grub/grub.cfg
# add archiso_pxe_dns to mkinitcpio.conf
sed -i 's/archiso_pxe_common/archiso_pxe_dns archiso_pxe_common/g' airootfs/etc/mkinitcpio.conf
# add ntfs-3g to mkinitcpio.conf
sed -i 's/\(BINARIES=(\)/\1mount.ntfs /g' airootfs/etc/mkinitcpio.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
# alter packages
cat << EOF >> packages.x86_64
EOF
cat << EOF > packages.x86_64.remove
EOF
}