From 34105077c777b0d2c5c69f39921f376b84ce1443 Mon Sep 17 00:00:00 2001 From: Philip J Freeman Date: Sat, 31 May 2025 12:34:14 -0700 Subject: Deploying a demo amd64 debian-based OS via ostree This is a prototype outline for building and deploying a debian based OS with ostree. For purposes of demonstration, the OS runs from a bootable USB device on a UEFI capable amd64 machine. Once a USB device is created and booted, the OS can be updated using a simple shell script. --- hooks/build-os/10-apt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 hooks/build-os/10-apt (limited to 'hooks/build-os/10-apt') diff --git a/hooks/build-os/10-apt b/hooks/build-os/10-apt new file mode 100755 index 0000000..65c7056 --- /dev/null +++ b/hooks/build-os/10-apt @@ -0,0 +1,15 @@ +#!/bin/bash -xe +set -o pipefail + +# Enable additional sources +cat > "${root:?}"/etc/apt/sources.list << EOF +deb https://deb.debian.org/debian trixie main contrib non-free non-free-firmware + +deb https://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware + +deb https://security.debian.org/debian-security trixie-security main contrib non-free non-free-firmware +EOF + +# update/upgrade system +chroot "${root:?}" apt-get update +chroot "${root:?}" apt-get upgrade -- cgit v1.2.3