From cdb972579aa6599b57c12a6ad1da8bb03bcb2e35 Mon Sep 17 00:00:00 2001 From: Matt Knoop Date: Wed, 10 Dec 2025 09:09:44 -0700 Subject: [PATCH] bootable. --- config/filesystem_chroot_install.sh | 4 +++- scripts/boot_image.sh | 2 +- scripts/build_filesystem.sh | 3 +-- scripts/build_image.sh | 4 ++++ 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/config/filesystem_chroot_install.sh b/config/filesystem_chroot_install.sh index 07450b2..da7b1bf 100644 --- a/config/filesystem_chroot_install.sh +++ b/config/filesystem_chroot_install.sh @@ -15,7 +15,9 @@ echo "LANG=en_US.UTF-8" > /etc/default/locale #install base system packages apt install -y --install-recommends --install-suggests --reinstall systemd apt install -y --no-install-recommends gnome-core -apt install -y git curl flatpak systemd-resolved ufw nano htop ipset lm-sensors net-tools iputils-ping fish python3-bpfcc python3-pip bpfcc-tools gnome-shell-extension-ubuntu-dock gnome-shell-extension-ubuntu-tiling-assistant ffmpeg vlc +apt install -y git curl flatpak systemd-resolved ufw nano htop ipset lm-sensors net-tools iputils-ping fish python3-bpfcc python3-pip bpfcc-tools gnome-shell-extension-ubuntu-dock gnome-shell-extension-ubuntu-tiling-assistant ffmpeg vlc pciutils usbutils + +#install python systemwide pip install --break-system-packages dnslib psutil #add setuid for some applications diff --git a/scripts/boot_image.sh b/scripts/boot_image.sh index 9a0e66e..f31fc43 100755 --- a/scripts/boot_image.sh +++ b/scripts/boot_image.sh @@ -4,5 +4,5 @@ cd .. disk="./outputs/boot_image.img" -qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -drive if=none,format=raw,file=$disk,id=hd -device virtio-blk-pci,drive=hd -m 16G -smp 8 -vga none --display default,gl=off -usb -device usb-tablet -device virtio-mouse-pci -device virtio-keyboard-pci --device virtio-gpu-pci -usb -enable-kvm -machine type=pc-q35-3.1,accel=kvm,kernel_irqchip=on +qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -drive if=none,format=raw,file=$disk,id=hd -device virtio-blk-pci,drive=hd -m 16G -smp 8 -vga none --display default,gl=off -usb -device virtio-tablet-pci -device virtio-keyboard-pci --device virtio-gpu-pci -usb -enable-kvm -machine type=pc-q35-3.1,accel=kvm,kernel_irqchip=on -netdev user,id=net0 -device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:56 #--display gtk,gl=off --device virtio-gpu diff --git a/scripts/build_filesystem.sh b/scripts/build_filesystem.sh index 9f5f7a6..c017244 100755 --- a/scripts/build_filesystem.sh +++ b/scripts/build_filesystem.sh @@ -30,8 +30,7 @@ mount --bind /proc ./outputs/chroot/proc cp ./config/filesystem_chroot_install.sh ./outputs/chroot/filesystem_chroot_install.sh chmod +x ./outputs/chroot/filesystem_chroot_install.sh chroot ./outputs/chroot /bin/bash -c "/filesystem_chroot_install.sh" -cp ./config/interfaces.network ./outputs/chroot/etc/systemd/network/10-all.network -cp ./config/resolved.conf ./outputs/chroot/etc/systemd/resolved.conf + cd $DIR cd .. if mountpoint -q "./outputs/chroot/proc/"; then diff --git a/scripts/build_image.sh b/scripts/build_image.sh index e16a24b..8bccb11 100755 --- a/scripts/build_image.sh +++ b/scripts/build_image.sh @@ -50,7 +50,11 @@ echo 'copying filesystem to mounted image..' if mountpoint -q "./outputs/chroot/proc/"; then umount -lf "./outputs/chroot/proc/" fi +cp ./config/interfaces.network ./outputs/chroot/etc/systemd/network/10-all.network +cp ./config/resolved.conf ./outputs/chroot/etc/systemd/resolved.conf rsync -a './outputs/chroot/' './outputs/sys/' + + #tar -xf ./patronagefs.tar --directory ./mnt/sys/ echo 'copied..' echo 'copying boot files..'