-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsteps.sh
executable file
·42 lines (26 loc) · 2.18 KB
/
steps.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
[[ -d ../releng ]] && rm -r ../releng
cp -r /usr/share/archiso/configs/releng/ ../
[[ -d ../releng/airootfs/etc/systemd/system/[email protected] ]] && rm -r ../releng/airootfs/etc/systemd/system/[email protected]
[[ -d ../releng/airootfs/etc/systemd/network ]] && rm -r ../releng/airootfs/etc/systemd/network
[[ -d ../releng/airootfs/etc/systemd/system/systemd-networkd-wait-online.service.d ]] && rm -r ../releng/airootfs/etc/systemd/system/systemd-networkd-wait-online.service.d
[[ -f ../releng/airootfs/etc/systemd/system/dbus-org.freedesktop.network1.service ]] && rm ../releng/airootfs/etc/systemd/system/dbus-org.freedesktop.network1.service
[[ -f ../releng/airootfs/etc/systemd/system/dbus-org.freedesktop.resolve1.service ]] && rm ../releng/airootfs/etc/systemd/system/dbus-org.freedesktop.resolve1.service
[[ -f ../releng/airootfs/etc/systemd/system/multi-user.target.wants/systemd-networkd.service ]] && rm ../releng/airootfs/etc/systemd/system/multi-user.target.wants/systemd-networkd.service
[[ -f ../releng/airootfs/etc/systemd/system/multi-user.target.wants/systemd-resolved.service ]] && rm ../releng/airootfs/etc/systemd/system/multi-user.target.wants/systemd-resolved.service
[[ -f ../releng/airootfs/etc/systemd/system/sockets.target.wants/systemd-networkd.socket ]] && rm ../releng/airootfs/etc/systemd/system/sockets.target.wants/systemd-networkd.socket
[[ -f ../releng/airootfs/etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service ]] && rm ../releng/airootfs/etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service
[[ -f ../releng/airootfs/etc/resolv.conf ]] && rm ../releng/airootfs/etc/resolv.conf
[[ -d xfce4 ]] && mkdir -p ../releng/airootfs/etc/skel/.config
cp build.sh ../releng/
cp packages.x86_64 ../releng/
cp customize_airootfs.sh ../releng/airootfs/root/
cp splash.png ../releng/syslinux/
cp archiso_head.cfg ../releng/syslinux/
cp archiso_sys.cfg ../releng/syslinux/
[[ -d usr ]] && cp -r usr ../releng/airootfs/
[[ -d etc ]] && cp -r etc ../releng/airootfs/
[[ -d lightdm ]] && cp -r lightdm ../releng/airootfs/etc/
[[ -d xfce4 ]] && cp -r xfce4 ../releng/airootfs/etc/skel/.config/
cd ../releng
./build.sh -v