Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Update the network config copy script for netplan (#2348) #2355

Merged
merged 1 commit into from
Sep 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions snap/local/postinst.d/10_copy_network_config
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@ target_nm=$target/$source_nm
if [ -d $source_nm ] && [ -d $target_nm ]; then
cp -anr $source_nm/. $target_nm
fi

source_netplan=/etc/netplan
target_netplan=$target/$source_netplan

if [ -d $source_netplan ] && [ -d $target_netplan ]; then
cp -anr $source_netplan/90-NM-* $target_netplan
fi