forked from mirrored-repos/manjaro-tools
util-iso: machine-id gets copied within root-image
This commit is contained in:
parent
647c7d298e
commit
569f79d1a5
1 changed files with 5 additions and 1 deletions
|
@ -18,7 +18,11 @@ configure_machine_id(){
|
|||
# set unique machine-id
|
||||
msg2 "Setting machine-id ..."
|
||||
chroot $1 dbus-uuidgen --ensure=/etc/machine-id
|
||||
if [[ -z "$(echo $1 | grep root-image)" ]];then
|
||||
chroot $1 ln -s /etc/machine-id /var/lib/dbus/machine-id
|
||||
else
|
||||
chroot $1 cp /etc/machine-id /var/lib/dbus/machine-id
|
||||
fi
|
||||
}
|
||||
|
||||
# $1: chroot
|
||||
|
|
Loading…
Reference in a new issue