qubes-installer-qubes-os/anaconda/tests/ostree/basic.ks
Marek Marczykowski-Górecki 3e63d1dd37 anaconda: update to 21.48.21-1
Apply diff anaconda-20.25.16-1..anaconda-21.48.21-1
2016-03-22 02:27:15 +13:00

37 lines
826 B
Plaintext

# Substitute something in for REPO or this will all come crashing down.
ostreesetup --nogpg --osname=fedora-atomic --remote=fedora-atomic --url=REPO --ref=fedora-atomic/rawhide/x86_64/base/core
bootloader --timeout=1 --extlinux
zerombr
clearpart --all
part --fstype=ext4 --size=4400 /
part --fstype=ext4 --size=500 /boot
part --fstype=swap --size=500 swap
keyboard us
timezone America/New_York
rootpw qweqwe
shutdown
%post
cat <<EOF > /etc/systemd/system/default.target.wants/run-test.service
[Unit]
Description=Run a test to see if anaconda+ostree worked
After=basic.target
[Service]
Type=oneshot
ExecStart=/usr/bin/run-test.sh
EOF
cat <<EOF > /usr/bin/run-test.sh
#!/bin/bash
# For now, just the fact that we rebooted is good enough.
echo SUCCESS > /root/RESULT
shutdown -h now
EOF
chmod +x /usr/bin/run-test.sh
%end