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" {
|
||||
|
||||
Reference in New Issue
Block a user