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>
16 lines
465 B
Bash
16 lines
465 B
Bash
#!/usr/bin/env bats
|
|
# Security compliance tests
|
|
|
|
@test "preseed contains encryption configuration" {
|
|
grep -q "crypto" /workspace/config/includes.installer/preseed.cfg
|
|
grep -q "LUKS" /workspace/config/includes.installer/preseed.cfg
|
|
}
|
|
|
|
@test "WiFi is permanently disabled" {
|
|
grep -q "cfg80211" /workspace/src/security-hardening.sh
|
|
}
|
|
|
|
@test "nftables is in package list" {
|
|
grep -q "nftables" /workspace/config/package-lists/knel-football.list.chroot
|
|
}
|