bootable.
This commit is contained in:
@@ -15,7 +15,9 @@ echo "LANG=en_US.UTF-8" > /etc/default/locale
|
|||||||
#install base system packages
|
#install base system packages
|
||||||
apt install -y --install-recommends --install-suggests --reinstall systemd
|
apt install -y --install-recommends --install-suggests --reinstall systemd
|
||||||
apt install -y --no-install-recommends gnome-core
|
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
|
pip install --break-system-packages dnslib psutil
|
||||||
|
|
||||||
#add setuid for some applications
|
#add setuid for some applications
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ cd ..
|
|||||||
disk="./outputs/boot_image.img"
|
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
|
#--display gtk,gl=off --device virtio-gpu
|
||||||
|
|||||||
@@ -30,8 +30,7 @@ mount --bind /proc ./outputs/chroot/proc
|
|||||||
cp ./config/filesystem_chroot_install.sh ./outputs/chroot/filesystem_chroot_install.sh
|
cp ./config/filesystem_chroot_install.sh ./outputs/chroot/filesystem_chroot_install.sh
|
||||||
chmod +x ./outputs/chroot/filesystem_chroot_install.sh
|
chmod +x ./outputs/chroot/filesystem_chroot_install.sh
|
||||||
chroot ./outputs/chroot /bin/bash -c "/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 $DIR
|
||||||
cd ..
|
cd ..
|
||||||
if mountpoint -q "./outputs/chroot/proc/"; then
|
if mountpoint -q "./outputs/chroot/proc/"; then
|
||||||
|
|||||||
@@ -50,7 +50,11 @@ echo 'copying filesystem to mounted image..'
|
|||||||
if mountpoint -q "./outputs/chroot/proc/"; then
|
if mountpoint -q "./outputs/chroot/proc/"; then
|
||||||
umount -lf "./outputs/chroot/proc/"
|
umount -lf "./outputs/chroot/proc/"
|
||||||
fi
|
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/'
|
rsync -a './outputs/chroot/' './outputs/sys/'
|
||||||
|
|
||||||
|
|
||||||
#tar -xf ./patronagefs.tar --directory ./mnt/sys/
|
#tar -xf ./patronagefs.tar --directory ./mnt/sys/
|
||||||
echo 'copied..'
|
echo 'copied..'
|
||||||
echo 'copying boot files..'
|
echo 'copying boot files..'
|
||||||
|
|||||||
Reference in New Issue
Block a user