Skip to content

Commit f99b8de

Browse files
committed
.release: use package gizmo-fms as base
1 parent 67d2ab3 commit f99b8de

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.release/build.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,23 @@ install_common() {
3030
chmod +x /mnt/target/usr/bin/gizmo
3131
cd /mnt/target || exit 1
3232
chroot /mnt/target /usr/bin/xbps-install -Suy xbps
33-
chroot /mnt/target /usr/bin/xbps-install -y xmirror
33+
chroot /mnt/target /usr/bin/xbps-install -y xmirror void-repo-nonfree
3434
chroot /mnt/target /usr/bin/xmirror -s https://repo-fastly.voidlinux.org/current
3535
chroot /mnt/target /usr/bin/xbps-install -uy
3636
chroot /mnt/target /usr/bin/chsh -s /bin/bash
3737
chroot /mnt/target /usr/bin/gizmo version
3838
}
3939

4040
install_fms() {
41+
chroot /mnt/target /usr/bin/xbps-install -y gizmo-fms
42+
43+
# Overwrite the packaged version with this version
44+
cd - || exit 1
45+
cp dist/gizmo_linux_arm64_v8.0/gizmo /mnt/target/usr/bin/gizmo
46+
cd /mnt/target || exit 1
47+
chmod +x /mnt/target/usr/bin/gizmo
4148
chroot /mnt/target /usr/bin/gizmo fms system-install
4249
chroot /mnt/target /usr/bin/useradd -m -s /bin/bash -c "FMS Admin" -G wheel,storage,dialout,docker admin
43-
chroot /mnt/target /usr/bin/useradd -r -m -s /bin/nologin -c "Gizmo System User" -d /var/lib/gizmo _gizmo
4450
chroot /mnt/target /usr/bin/ln -sf /var/lib/gizmo/bin/netinstall-cli /usr/bin/netinstall-cli
4551
chroot /mnt/target /usr/bin/htpasswd -cb /var/lib/gizmo/.htpasswd admin gizmo
4652
chroot /mnt/target /usr/bin/passwd -l root

0 commit comments

Comments
 (0)