Skip to content

Commit

Permalink
test: let vm.install work both locally and with tmt
Browse files Browse the repository at this point in the history
  • Loading branch information
croissanne committed Aug 22, 2024
1 parent cbe39a6 commit d48c423
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/vm.install
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@ fi
REPODIR=/etc/osbuild-composer/repositories
sudo mkdir -p $REPODIR
# Copy rhel nightly overrides
cp /home/admin/files/rhel-95.json /etc/osbuild-composer/repositories/rhel-95.json
cp /home/admin/files/rhel-10.json /etc/osbuild-composer/repositories/rhel-10.json
cp /home/admin/files/rhel-10.json /etc/osbuild-composer/repositories/rhel-10.0.json
if [ -d /home/admin/files ]; then
cp /home/admin/files/rhel-95.json /etc/osbuild-composer/repositories/rhel-95.json
cp /home/admin/files/rhel-10.json /etc/osbuild-composer/repositories/rhel-10.0.json
else
cp test/files/rhel-95.json /etc/osbuild-composer/repositories/rhel-95.json
cp test/files/rhel-10.json /etc/osbuild-composer/repositories/rhel-10.json
fi
ln -s /etc/osbuild-composer/repositories/rhel-95.json /etc/osbuild-composer/repositories/rhel-95-beta.json
ln -s /etc/osbuild-composer/repositories/rhel-95.json /etc/osbuild-composer/repositories/rhel-95-ga.json

# Allow cockpit port (9090) in INPUT chain
# Do not reload firewall rule during image generation
if type firewall-cmd >/dev/null 2>&1; then
if type firewall-cmd >/dev/null 2>&1 && firewall-cmd --state > /dev/null 2>&1; then
firewall-cmd --add-service=cockpit --permanent
fi

Expand Down

0 comments on commit d48c423

Please sign in to comment.