mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
testing: Copy guest-specific files after default files
This allows overriding some files per guest.
This commit is contained in:
parent
79ad33bfba
commit
872781734d
@ -45,8 +45,8 @@ do
|
|||||||
execute "qemu-nbd -c $NBDEV $IMGDIR/$host.$IMGEXT" 0
|
execute "qemu-nbd -c $NBDEV $IMGDIR/$host.$IMGEXT" 0
|
||||||
partprobe $NBDEV
|
partprobe $NBDEV
|
||||||
execute "mount $NBDPARTITION $LOOPDIR" 0
|
execute "mount $NBDPARTITION $LOOPDIR" 0
|
||||||
execute "cp -rf $HOSTSDIR/${host}/etc $LOOPDIR" 0
|
|
||||||
execute "cp -rf $HOSTSDIR/default/* $LOOPDIR" 0
|
execute "cp -rf $HOSTSDIR/default/* $LOOPDIR" 0
|
||||||
|
execute "cp -rf $HOSTSDIR/${host}/etc $LOOPDIR" 0
|
||||||
execute_chroot "ldconfig" 0
|
execute_chroot "ldconfig" 0
|
||||||
execute "mkdir $LOOPDIR/etc/pts" 0
|
execute "mkdir $LOOPDIR/etc/pts" 0
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ then
|
|||||||
for host in `ls $TESTSDIR/${testname}/hosts`
|
for host in `ls $TESTSDIR/${testname}/hosts`
|
||||||
do
|
do
|
||||||
eval HOSTLOGIN="root@`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`"
|
eval HOSTLOGIN="root@`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`"
|
||||||
scp $SSHCONF -r $HOSTCONFIGDIR/${host}/etc $HOSTLOGIN:/ > /dev/null 2>&1
|
|
||||||
scp $SSHCONF -r $HOSTCONFIGDIR/default/etc $HOSTLOGIN:/ > /dev/null 2>&1
|
scp $SSHCONF -r $HOSTCONFIGDIR/default/etc $HOSTLOGIN:/ > /dev/null 2>&1
|
||||||
|
scp $SSHCONF -r $HOSTCONFIGDIR/${host}/etc $HOSTLOGIN:/ > /dev/null 2>&1
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user