some initial work
This commit is contained in:
parent
c429549a61
commit
26c3c83f31
@ -12,7 +12,20 @@ args = parser.parse_args()
|
|||||||
|
|
||||||
# Print all command-line arguments.
|
# Print all command-line arguments.
|
||||||
print("Parsed arguments: {}".format(args))
|
print("Parsed arguments: {}".format(args))
|
||||||
print(r)
|
# Get root info
|
||||||
|
root_uuid_command= subprocess.Popen(['/home/ward/pkgs/pikauwu/pkg-pikainstall/pikainstall/usr/lib/pika/pikainstall/partition-helper.sh', 'uuid'] + args.root, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
|
root_uuid = root_uuid_command.stdout.readline().decode("utf-8").strip()
|
||||||
|
print("Root UUID: {}".format(root_uuid))
|
||||||
|
# Get boot info
|
||||||
|
boot_uuid_command= subprocess.Popen(['/home/ward/pkgs/pikauwu/pkg-pikainstall/pikainstall/usr/lib/pika/pikainstall/partition-helper.sh', 'uuid'] + args.boot, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
|
boot_uuid = boot_uuid_command.stdout.readline().decode("utf-8").strip()
|
||||||
|
print("Boot UUID: {}".format(boot_uuid))
|
||||||
|
# Get EFI info
|
||||||
|
efi_uuid_command= subprocess.Popen(['/home/ward/pkgs/pikauwu/pkg-pikainstall/pikainstall/usr/lib/pika/pikainstall/partition-helper.sh', 'uuid'] + args.efi, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
|
efi_uuid = efi_uuid_command.stdout.readline().decode("utf-8").strip()
|
||||||
|
print("EFI UUID: {}".format(efi_uuid))
|
||||||
|
# Get Home info is exists
|
||||||
if args.home is not None:
|
if args.home is not None:
|
||||||
print("good")
|
home_uuid_command = subprocess.Popen(['/home/ward/pkgs/pikauwu/pkg-pikainstall/pikainstall/usr/lib/pika/pikainstall/partition-helper.sh', 'uuid'] + args.home, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
exit(1)
|
home_uuid = home_uuid_command.stdout.readline().decode("utf-8").strip()
|
||||||
|
print("Home UUID: {}".format(home_uuid))
|
||||||
|
Loading…
Reference in New Issue
Block a user