forked from mirrored-repos/manjaro-tools
[util-livecd] delete if /etc/machineid exists
This commit is contained in:
parent
c8b9e4126f
commit
53d587b685
1 changed files with 5 additions and 0 deletions
|
@ -348,6 +348,11 @@ rm_kalu(){
|
||||||
### end shared functions with cli installer
|
### end shared functions with cli installer
|
||||||
|
|
||||||
configure_machine_id(){
|
configure_machine_id(){
|
||||||
|
if [ -e "/etc/machine-id" ] ; then
|
||||||
|
# delete existing machine-id
|
||||||
|
echo "Deleting existing machine-id ..." >> /var/log/livecd.log
|
||||||
|
rm /etc/machine-id
|
||||||
|
fi
|
||||||
# set unique machine-id
|
# set unique machine-id
|
||||||
echo "Setting machine-id ..." >> /var/log/livecd.log
|
echo "Setting machine-id ..." >> /var/log/livecd.log
|
||||||
dbus-uuidgen --ensure=/etc/machine-id
|
dbus-uuidgen --ensure=/etc/machine-id
|
||||||
|
|
Loading…
Reference in a new issue