packer: add support for Debian/bookworm
authorMichael Prokop <mika@grml.org>
Tue, 15 Nov 2022 10:18:23 +0000 (11:18 +0100)
committerMichael Prokop <mika@grml.org>
Tue, 15 Nov 2022 10:18:23 +0000 (11:18 +0100)
packer/Makefile
packer/debian64.bats
packer/debian64_provision.sh

index 9d60c35..27f91b0 100644 (file)
@@ -25,6 +25,10 @@ clean:
        $(RM) *.o *.so
        rm -rf local_dir
 
+# Debian 12
+bookworm: clean fake-uname.so install
+       packer build -var debian_version=$@ -var grml_debootstrap_version=$(GRML_DEBOOTSTRAP_VERSION) -var grml_debootstrap_local_path=$(GRML_DEBOOTSTRAP_LOCAL_PATH) debian64.json
+
 # Debian 11
 bullseye: clean fake-uname.so install
        packer build -var debian_version=$@ -var grml_debootstrap_version=$(GRML_DEBOOTSTRAP_VERSION) -var grml_debootstrap_local_path=$(GRML_DEBOOTSTRAP_LOCAL_PATH) debian64.json
index 80481a5..3e5818c 100644 (file)
@@ -17,7 +17,7 @@ teardown() {
 @test "debian_version exists and is valid version" {
   run cat "${mountpath}/etc/debian_version"
   [ "$status" -eq 0 ]
-  [[ "$output" == [0-9]*.[0-9]* ]] || [[ "$output" == 'bullseye/sid' ]]
+  [[ "$output" == [0-9]*.[0-9]* ]] || [[ "$output" == 'bookworm/sid' ]]
 }
 
 @test "kernel exists" {
index 2a416de..98b4d37 100644 (file)
@@ -234,7 +234,7 @@ grml_debootstrap_execution() {
 apply_nic_workaround() {
   # release specific stuff
   case "$DEBIAN_VERSION" in
-    stretch|buster|bullseye|unstable|sid)
+    stretch|buster|bullseye|bookworm|unstable|sid)
       ;;
     *)
       echo "* Debian $DEBIAN_VERSION doesn't require NIC workaround"