mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-12-23 04:25:04 +01:00
Implemented tests
This commit is contained in:
parent
5edf8e9653
commit
6a7372af68
@ -476,6 +476,17 @@ if [ "$encrypt_system" == "y" ]
|
||||
echo "sudo cryptsetup -v luksClose root &&"
|
||||
echo "exit || echo 'Error in chroot environment!' echo 'Trying to close decrypted root.'; sudo cryptsetup -v luksClose root"
|
||||
) | chroot "$root_mount_path" /bin/bash || error
|
||||
info "Execute file tests..."
|
||||
info "Testing $mkinitcpio_path..."
|
||||
if ! grep -q "$replace_modules" "$mkinitcpio_path"; then
|
||||
error "File $mkinitcpio_path doesn't contain the string: $replace_modules"
|
||||
fi
|
||||
if ! grep -q "$replace_hooks" "$mkinitcpio_path"; then
|
||||
error "File $mkinitcpio_path doesn't contain the string: $replace_hooks"
|
||||
fi
|
||||
if ! grep -q "$boot_txt_setenv_replace" "$boot_txt_path"; then
|
||||
error "File $boot_txt_path doesn't contain the string: $boot_txt_setenv_replace"
|
||||
fi
|
||||
fi
|
||||
|
||||
question "Do you want to setup Wifi on the device?(y/N)" && read -r setup_wifi
|
||||
|
Loading…
Reference in New Issue
Block a user