Rework status messages related to adding files

This commit is contained in:
Fierelier 2023-01-28 06:45:50 +01:00
parent 371201bf24
commit 487ca63d11

View File

@ -244,13 +244,14 @@ def main():
mkdirp(ipth())
call(["mount",installPartition,ipth()])
print("> Creating swap ...")
print("> Adding files")
print("Creating swap ...")
call(["dd","if=/dev/zero","of=" +ipth("swap"),"bs=1M","count=512","status=progress"])
call(["chmod","600",ipth("swap")])
call(["mkswap",ipth("swap")])
call(["swapon",ipth("swap")])
print("> Adding files ...")
print("Unpacking OS ...")
call(["unsquashfs","-f","-d",ipth(),"/lib/live/mount/medium/live/filesystem.squashfs"])
print("Setting hostname ...")