fix file writers maybe?
This commit is contained in:
parent
4038e43c68
commit
076b08d270
@ -1,4 +1,4 @@
|
|||||||
pikainstall (1.0.2-100pika1) pikauwu; urgency=medium
|
pikainstall (1.0.3-100pika1) pikauwu; urgency=medium
|
||||||
|
|
||||||
* Initial release.
|
* Initial release.
|
||||||
|
|
||||||
|
0
pikainstall/usr/lib/pika/pikainstall/pika-install-host.sh
Normal file → Executable file
0
pikainstall/usr/lib/pika/pikainstall/pika-install-host.sh
Normal file → Executable file
@ -6,7 +6,7 @@ import subprocess
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
# Version
|
# Version
|
||||||
version="1.0.2"
|
version="1.0.3"
|
||||||
dist="PikaOS 3"
|
dist="PikaOS 3"
|
||||||
image="/cdrom/casper/filesystem.squashfs"
|
image="/cdrom/casper/filesystem.squashfs"
|
||||||
|
|
||||||
@ -137,7 +137,7 @@ CHROOT_PATH = listToString(args.root)
|
|||||||
# Write crypttab script if system has encryption
|
# Write crypttab script if system has encryption
|
||||||
if root_encrypt != "luks_none":
|
if root_encrypt != "luks_none":
|
||||||
CRYPTTAB_ROOT_FILE_PATH = '/var/albius-crypttab-root.sh'
|
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("writing to:")
|
||||||
print(CHROOT_CRYPTTAB_ROOT_FILE_PATH)
|
print(CHROOT_CRYPTTAB_ROOT_FILE_PATH)
|
||||||
with open(CHROOT_CRYPTTAB_ROOT_FILE_PATH, "w") as file:
|
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 args.home is not None:
|
||||||
if home_encrypt != "luks_none":
|
if home_encrypt != "luks_none":
|
||||||
CRYPTTAB_FILE_PATH = '/var/albius-crypttab.sh'
|
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("writing to:")
|
||||||
print(CHROOT_CRYPTTAB_FILE_PATH)
|
print(CHROOT_CRYPTTAB_FILE_PATH)
|
||||||
with open(CHROOT_CRYPTTAB_FILE_PATH, "w") as file:
|
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
|
# Write refind script if system has encryption
|
||||||
REFIND_FILE_PATH = '/var/albius-refind_linux.sh'
|
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("writing to:")
|
||||||
print(CHROOT_REFIND_FILE_PATH)
|
print(CHROOT_REFIND_FILE_PATH)
|
||||||
with open(CHROOT_REFIND_FILE_PATH, "w") as file:
|
with open(CHROOT_REFIND_FILE_PATH, "w") as file:
|
||||||
|
Loading…
Reference in New Issue
Block a user