fix: move preseed.cfg to includes.installer for live-build
The preseed file needs to be in config/includes.installer/ for live-build to embed it into the Debian installer. Previously it was in config/ which doesn't get picked up by lb build. - Moved config/preseed.cfg -> config/includes.installer/preseed.cfg - Updated all test files to reference new path 💘 Generated with Crush Assisted-by: GLM-4.7 via Crush <crush@charm.land>
This commit is contained in:
@@ -9,47 +9,47 @@
|
||||
# =============================================================================
|
||||
|
||||
@test "preseed.cfg exists" {
|
||||
[ -f "/workspace/config/preseed.cfg" ]
|
||||
[ -f "/workspace/config/includes.installer/preseed.cfg" ]
|
||||
}
|
||||
|
||||
@test "preseed.cfg is not empty" {
|
||||
[ -s "/workspace/config/preseed.cfg" ]
|
||||
[ -s "/workspace/config/includes.installer/preseed.cfg" ]
|
||||
}
|
||||
|
||||
@test "preseed has locale configuration" {
|
||||
grep -q "locales\|locale" /workspace/config/preseed.cfg
|
||||
grep -q "locales\|locale" /workspace/config/includes.installer/preseed.cfg
|
||||
}
|
||||
|
||||
@test "preseed has keyboard configuration" {
|
||||
grep -q "keyboard\|console-keymaps" /workspace/config/preseed.cfg
|
||||
grep -q "keyboard\|console-keymaps" /workspace/config/includes.installer/preseed.cfg
|
||||
}
|
||||
|
||||
@test "preseed has network configuration" {
|
||||
grep -q "netcfg\|network" /workspace/config/preseed.cfg
|
||||
grep -q "netcfg\|network" /workspace/config/includes.installer/preseed.cfg
|
||||
}
|
||||
|
||||
@test "preseed has timezone configuration" {
|
||||
grep -q "time\|zone" /workspace/config/preseed.cfg
|
||||
grep -q "time\|zone" /workspace/config/includes.installer/preseed.cfg
|
||||
}
|
||||
|
||||
@test "preseed has partition configuration" {
|
||||
grep -q "partman\|partition" /workspace/config/preseed.cfg
|
||||
grep -q "partman\|partition" /workspace/config/includes.installer/preseed.cfg
|
||||
}
|
||||
|
||||
@test "preseed has crypto/encryption configuration" {
|
||||
grep -q "crypto\|Crypto\|encrypted\|luks" /workspace/config/preseed.cfg || true
|
||||
grep -q "crypto\|Crypto\|encrypted\|luks" /workspace/config/includes.installer/preseed.cfg || true
|
||||
}
|
||||
|
||||
@test "preseed has boot loader configuration" {
|
||||
grep -q "grub\|grub-installer\|bootloader" /workspace/config/preseed.cfg
|
||||
grep -q "grub\|grub-installer\|bootloader" /workspace/config/includes.installer/preseed.cfg
|
||||
}
|
||||
|
||||
@test "preseed has package selection" {
|
||||
grep -q "tasksel\|pkgsel\|popularity-contest" /workspace/config/preseed.cfg
|
||||
grep -q "tasksel\|pkgsel\|popularity-contest" /workspace/config/includes.installer/preseed.cfg
|
||||
}
|
||||
|
||||
@test "preseed finishes installation automatically" {
|
||||
grep -q "finish-install" /workspace/config/preseed.cfg
|
||||
grep -q "finish-install" /workspace/config/includes.installer/preseed.cfg
|
||||
}
|
||||
|
||||
# =============================================================================
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
}
|
||||
|
||||
@test "config has preseed file" {
|
||||
[ -f "/workspace/config/preseed.cfg" ]
|
||||
[ -f "/workspace/config/includes.installer/preseed.cfg" ]
|
||||
}
|
||||
|
||||
@test "config has package list" {
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
# Reference: CIS Benchmark, FedRAMP, CMMC
|
||||
|
||||
@test "Full Disk Encryption configured" {
|
||||
grep -q "crypto" /workspace/config/preseed.cfg
|
||||
grep -q "crypto" /workspace/config/includes.installer/preseed.cfg
|
||||
}
|
||||
|
||||
@test "Password complexity configured" {
|
||||
grep -q "pwquality" /workspace/config/preseed.cfg
|
||||
grep -q "pwquality" /workspace/config/includes.installer/preseed.cfg
|
||||
}
|
||||
|
||||
@test "WiFi blacklisted" {
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
# Security compliance tests
|
||||
|
||||
@test "preseed contains encryption configuration" {
|
||||
grep -q "crypto" /workspace/config/preseed.cfg
|
||||
grep -q "LUKS" /workspace/config/preseed.cfg
|
||||
grep -q "crypto" /workspace/config/includes.installer/preseed.cfg
|
||||
grep -q "LUKS" /workspace/config/includes.installer/preseed.cfg
|
||||
}
|
||||
|
||||
@test "WiFi is permanently disabled" {
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
# Encryption configuration tests
|
||||
|
||||
@test "LUKS2 encryption configured" {
|
||||
grep -q "LUKS" /workspace/config/preseed.cfg
|
||||
grep -q "LUKS" /workspace/config/includes.installer/preseed.cfg
|
||||
}
|
||||
|
||||
@test "AES cipher configured" {
|
||||
grep -qi "aes" /workspace/config/preseed.cfg
|
||||
grep -qi "aes" /workspace/config/includes.installer/preseed.cfg
|
||||
}
|
||||
|
||||
@test "encryption hooks exist" {
|
||||
|
||||
@@ -142,8 +142,8 @@
|
||||
# =============================================================================
|
||||
|
||||
@test "preseed.cfg exists and is readable" {
|
||||
[ -f "/workspace/config/preseed.cfg" ]
|
||||
[ -r "/workspace/config/preseed.cfg" ]
|
||||
[ -f "/workspace/config/includes.installer/preseed.cfg" ]
|
||||
[ -r "/workspace/config/includes.installer/preseed.cfg" ]
|
||||
}
|
||||
|
||||
@test "package list exists and is readable" {
|
||||
|
||||
@@ -64,8 +64,8 @@
|
||||
|
||||
# Test: Verify preseed has crypto partitioning
|
||||
@test "Preseed has crypto configuration" {
|
||||
[ -f "config/preseed.cfg" ]
|
||||
grep -q "crypto\|Crypto\|encrypted\|luks" config/preseed.cfg || true
|
||||
[ -f "config/includes.installer/preseed.cfg" ]
|
||||
grep -q "crypto\|Crypto\|encrypted\|luks" config/includes.installer/preseed.cfg || true
|
||||
}
|
||||
|
||||
# Test: Verify encryption README is created
|
||||
|
||||
@@ -39,8 +39,8 @@
|
||||
|
||||
# Test: Verify preseed has UEFI/GPT configuration
|
||||
@test "Preseed uses GPT partitioning for UEFI compatibility" {
|
||||
[ -f "config/preseed.cfg" ]
|
||||
grep -q "gpt\|GPT" config/preseed.cfg || grep -q "efi\|EFI" config/preseed.cfg || true
|
||||
[ -f "config/includes.installer/preseed.cfg" ]
|
||||
grep -q "gpt\|GPT" config/includes.installer/preseed.cfg || grep -q "efi\|EFI" config/includes.installer/preseed.cfg || true
|
||||
}
|
||||
|
||||
# Test: Verify GRUB configuration exists
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
}
|
||||
|
||||
@test "config/preseed.cfg exists" {
|
||||
[ -f "/workspace/config/preseed.cfg" ]
|
||||
[ -f "/workspace/config/includes.installer/preseed.cfg" ]
|
||||
}
|
||||
|
||||
@test "config/hooks directory exists" {
|
||||
|
||||
Reference in New Issue
Block a user