added machine-id setup on optional M flag

master
user 2023-08-13 18:08:20 -04:00
parent 5d7eb1667f
commit 1db5a427e6
1 changed files with 1 additions and 0 deletions

1
wipri
View File

@ -438,6 +438,7 @@ while getopts ":d:wapPMbrm:ihRsAH" arg; do
dbus-uuidgen --ensure=/etc/machine-id && dbus-uuidgen --ensure && {
machineid=$(cat /etc/machine-id)
echo -e "${GREEN}New machine-id generated:${ENDCOLOR} ${RED}$machineid${ENDCOLOR}"
systemd-machine-id-setup
}
;;