mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-22 15:11:04 +01:00
Solved bug
This commit is contained in:
parent
d3db71586a
commit
4b7c6d365b
@ -418,6 +418,12 @@ fi
|
|||||||
if [ "$encrypt_system" == "y" ]
|
if [ "$encrypt_system" == "y" ]
|
||||||
then
|
then
|
||||||
# @see https://gist.github.com/gea0/4fc2be0cb7a74d0e7cc4322aed710d38
|
# @see https://gist.github.com/gea0/4fc2be0cb7a74d0e7cc4322aed710d38
|
||||||
|
##########
|
||||||
|
#target_username="alarm"
|
||||||
|
#encrypted_partition_path="/dev/mmcblk1p3"
|
||||||
|
#target_hostname="test_host"
|
||||||
|
#echo '$standart_luks_password' | sudo cryptsetup luksClose root
|
||||||
|
##########
|
||||||
rescue_suffix=".$(date +%s).rescue"
|
rescue_suffix=".$(date +%s).rescue"
|
||||||
search_hooks="HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)"
|
search_hooks="HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)"
|
||||||
replace_hooks="HOOKS=(base udev autodetect modconf block sleep netconf dropbear encryptssh filesystems keyboard fsck)"
|
replace_hooks="HOOKS=(base udev autodetect modconf block sleep netconf dropbear encryptssh filesystems keyboard fsck)"
|
||||||
@ -453,7 +459,7 @@ if [ "$encrypt_system" == "y" ]
|
|||||||
echo "mount $root_mapper_path /mnt &&"
|
echo "mount $root_mapper_path /mnt &&"
|
||||||
echo "rsync --info=progress2 -axHAX / /mnt/ &&"
|
echo "rsync --info=progress2 -axHAX / /mnt/ &&"
|
||||||
echo "cp -v $fstab_path $fstab_rescue_path &&"
|
echo "cp -v $fstab_path $fstab_rescue_path &&"
|
||||||
echo "echo '$root_mapper_path / ext4 defaults,noatime 0 1' >> $fstab_path &&"
|
echo "echo $root_mapper_path' / ext4 defaults,noatime 0 1' >> $fstab_path &&"
|
||||||
echo "echo \"Content of $fstab_path:\" && cat \"$fstab_path\" &&"
|
echo "echo \"Content of $fstab_path:\" && cat \"$fstab_path\" &&"
|
||||||
echo "cp -v $crypttab_path $crypttab_rescue_path &&"
|
echo "cp -v $crypttab_path $crypttab_rescue_path &&"
|
||||||
echo "echo 'root $encrypted_partition_path none luks' >> $crypttab_path &&"
|
echo "echo 'root $encrypted_partition_path none luks' >> $crypttab_path &&"
|
||||||
|
Loading…
Reference in New Issue
Block a user