From 358d64604dd6ccbb7211c8e2378109a257e13c53 Mon Sep 17 00:00:00 2001 From: teldra Date: Sun, 9 May 2021 13:38:36 +0200 Subject: [PATCH] fixes --- modules/40-basesystem/install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/40-basesystem/install b/modules/40-basesystem/install index 17793a7..8612db0 100644 --- a/modules/40-basesystem/install +++ b/modules/40-basesystem/install @@ -102,8 +102,8 @@ sed -i "/FONT=/s/^#//g" /etc/rc.conf echo '0 * * * * /usr/bin/void-snapshot cron #void.system' > /var/spool/cron/root if [[ ! ${cfg[fde_key_store]} == "none" ]]; then - echo "Install pw is 'oem'" - echo "read -p \"Change PW for disk? y/n \" answer" > /etc/runit/core-services/99-changepwdisk.sh + echo "Install pw is 'oem'" > /etc/runit/core-services/99-changepwdisk.sh + echo "read -p \"Change PW for disk? y/n \" answer" >> /etc/runit/core-services/99-changepwdisk.sh echo "if [ \"\${answer}\" = \"y\" ]; then" >> /etc/runit/core-services/99-changepwdisk.sh echo " while ! cryptsetup luksChangeKey /dev/disk/by-uuid/${cfg[partuuid]}; do" >> /etc/runit/core-services/99-changepwdisk.sh echo " echo \"Again, please\"" >> /etc/runit/core-services/99-changepwdisk.sh @@ -112,8 +112,8 @@ if [[ ! ${cfg[fde_key_store]} == "none" ]]; then echo "fi" >> /etc/runit/core-services/99-changepwdisk.sh fi -echo "Install pw is 'oem'" -echo "read -p \"Change PW for ${users[name1]}? y/n \" answer" > /etc/runit/core-services/99-changepwuser.sh +echo "Install pw is 'oem'" > /etc/runit/core-services/99-changepwdisk.sh +echo "read -p \"Change PW for ${users[name1]}? y/n \" answer" >> /etc/runit/core-services/99-changepwuser.sh echo "if [ \"\${answer}\" = \"y\" ]; then" >> /etc/runit/core-services/99-changepwuser.sh echo " while ! passwd ${users[name1]}; do" >> /etc/runit/core-services/99-changepwuser.sh echo " echo \"Again, please\"" >> /etc/runit/core-services/99-changepwuser.sh