mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 02:15:36 -04:00
[machineid] simplify code
This commit is contained in:
parent
ca9f4bc053
commit
8768c3af66
1 changed files with 2 additions and 3 deletions
|
@ -36,9 +36,8 @@ def run():
|
|||
target_systemd_machineid_file = "{}/etc/machine-id".format(root_mount_point)
|
||||
target_dbus_machineid_file = "{}/var/lib/dbus/machine-id".format(root_mount_point)
|
||||
|
||||
if enable_systemd or enable_dbus:
|
||||
if os.path.exists(target_dbus_machineid_file):
|
||||
os.remove(target_dbus_machineid_file)
|
||||
if os.path.exists(target_dbus_machineid_file):
|
||||
os.remove(target_dbus_machineid_file)
|
||||
|
||||
if enable_systemd:
|
||||
if os.path.exists(target_systemd_machineid_file):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue