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. --- sh-lib | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sh-lib (limited to 'sh-lib') diff --git a/sh-lib b/sh-lib new file mode 100644 index 0000000..97571c2 --- /dev/null +++ b/sh-lib @@ -0,0 +1,12 @@ +function package_deps(){ + pkgs= + for pkg in $@; do + if ! dpkg -l $pkg 2>&1 >/dev/null; then + pkgs="$pkgs $pkg" + fi + done + if [ "$pkgs" != "" ]; then + apt-get update + apt-get --no-install-recommends install $pkgs + fi +} -- cgit v1.2.3