fix file writers maybe?

This commit is contained in:
Ward from fusion-voyager-3 2023-10-20 18:38:46 +03:00
parent 4038e43c68
commit 076b08d270
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
pikainstall (1.0.2-100pika1) pikauwu; urgency=medium
pikainstall (1.0.3-100pika1) pikauwu; urgency=medium
* Initial release.

View File

View File

@ -6,7 +6,7 @@ import subprocess
import os
# Version
version="1.0.2"
version="1.0.3"
dist="PikaOS 3"
image="/cdrom/casper/filesystem.squashfs"
@ -137,7 +137,7 @@ CHROOT_PATH = listToString(args.root)
# Write crypttab script if system has encryption
if root_encrypt != "luks_none":
CRYPTTAB_ROOT_FILE_PATH = '/var/albius-crypttab-root.sh'
CHROOT_CRYPTTAB_ROOT_FILE_PATH = os.path.join(CHROOT_PATH,CRYPTTAB_ROOT_FILE_PATH)
CHROOT_CRYPTTAB_ROOT_FILE_PATH = CHROOT_PATH+CRYPTTAB_ROOT_FILE_PATH
print("writing to:")
print(CHROOT_CRYPTTAB_ROOT_FILE_PATH)
with open(CHROOT_CRYPTTAB_ROOT_FILE_PATH, "w") as file:
@ -150,7 +150,7 @@ if root_encrypt != "luks_none":
if args.home is not None:
if home_encrypt != "luks_none":
CRYPTTAB_FILE_PATH = '/var/albius-crypttab.sh'
CHROOT_CRYPTTAB_FILE_PATH = os.path.join(CHROOT_PATH,CRYPTTAB_FILE_PATH)
CHROOT_CRYPTTAB_FILE_PATH = CHROOT_PATH+CRYPTTAB_FILE_PATH
print("writing to:")
print(CHROOT_CRYPTTAB_FILE_PATH)
with open(CHROOT_CRYPTTAB_FILE_PATH, "w") as file:
@ -162,7 +162,7 @@ if args.home is not None:
# Write refind script if system has encryption
REFIND_FILE_PATH = '/var/albius-refind_linux.sh'
CHROOT_REFIND_FILE_PATH = os.path.join(CHROOT_PATH,REFIND_FILE_PATH)
CHROOT_REFIND_FILE_PATH = CHROOT_PATH+REFIND_FILE_PATH
print("writing to:")
print(CHROOT_REFIND_FILE_PATH)
with open(CHROOT_REFIND_FILE_PATH, "w") as file: