mirror of
https://github.com/YunoHost/yunohost-ci.git
synced 2024-09-03 20:05:53 +02:00
remove mac address each time we create a new snapshot
This commit is contained in:
parent
e2bf59539b
commit
33a8934c0d
1 changed files with 3 additions and 3 deletions
6
utils.sh
6
utils.sh
|
@ -98,6 +98,9 @@ create_snapshot()
|
|||
local ynh_version=$2
|
||||
local snapshot=$3
|
||||
|
||||
# Unset the mac address to ensure the copy will get a new one and will be able to get new IP
|
||||
lxc config unset "$image_to_rebuild" volatile.eth0.hwaddr 2> /dev/null
|
||||
|
||||
# Create snapshot
|
||||
lxc snapshot "$instance_to_publish" "$ynh_version-$snapshot" --reuse
|
||||
}
|
||||
|
@ -206,9 +209,6 @@ rebuild_base_containers()
|
|||
chmod 777 $current_dir/cache
|
||||
lxc config device add "$image_to_rebuild" cache-folder disk path=/cache source="$current_dir/cache"
|
||||
|
||||
# Unset the mac address to ensure the copy will get a new one and will be able to get new IP
|
||||
lxc config unset "$image_to_rebuild" volatile.eth0.hwaddr
|
||||
|
||||
create_snapshot "$image_to_rebuild" "$ynh_version" "before-install"
|
||||
|
||||
# Install YunoHost
|
||||
|
|
Loading…
Reference in a new issue