Skip to content

Commit 6ced2bd

Browse files
committed
fix tmt workdir lost issue after repace to image mode
Signed-off-by: Xiaofeng Wang <[email protected]>
1 parent c9fbf77 commit 6ced2bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/bootc-install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ if [ "$TMT_REBOOT_COUNT" -eq 0 ]; then
2727
;;
2828
esac
2929

30-
ls -al /root/.ssh
31-
cat /root/.ssh/authorized_keys
32-
cp -r /root/.ssh "$TEMPDIR"
30+
cp -r /var/tmp/tmt "$TEMPDIR"
3331

3432
if [[ "$VERSION_ID" == "43" ]]; then
3533
BOOTC_COPR_REPO_DISTRO="fedora-rawhide-${ARCH}"
@@ -54,12 +52,14 @@ repo_gpgcheck=0
5452
EOF
5553
5654
dnf -y update bootc
55+
# cloud-init and rsync are required by TMT
5756
dnf -y install cloud-init rsync
5857
ln -s ../cloud-init.target /usr/lib/systemd/system/default.target.wants
5958
dnf -y clean all
6059
rm -rf /var/cache /var/lib/dnf
6160
EORUN
62-
COPY .ssh /var/roothome/.ssh
61+
# Keep package mode /var/tmp/tmt folder in place after replace to image mode
62+
COPY tmt /var/tmp/tmt
6363
REALEOF
6464

6565
cat "$CONTAINERFILE"

0 commit comments

Comments
 (0)