added machine-id setup on optional M flag
parent
5d7eb1667f
commit
1db5a427e6
1
wipri
1
wipri
|
@ -438,6 +438,7 @@ while getopts ":d:wapPMbrm:ihRsAH" arg; do
|
||||||
dbus-uuidgen --ensure=/etc/machine-id && dbus-uuidgen --ensure && {
|
dbus-uuidgen --ensure=/etc/machine-id && dbus-uuidgen --ensure && {
|
||||||
machineid=$(cat /etc/machine-id)
|
machineid=$(cat /etc/machine-id)
|
||||||
echo -e "${GREEN}New machine-id generated:${ENDCOLOR} ${RED}$machineid${ENDCOLOR}"
|
echo -e "${GREEN}New machine-id generated:${ENDCOLOR} ${RED}$machineid${ENDCOLOR}"
|
||||||
|
systemd-machine-id-setup
|
||||||
}
|
}
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue