diff options
author | Maxim Uvarov <maxim.uvarov@linaro.org> | 2019-09-20 17:11:33 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2019-09-20 17:24:47 +0300 |
commit | cbee93ffe42528bb4ec249b897c263ab061f9495 (patch) | |
tree | 73cdf56cd0541266f06d0490b27822edcb031351 /fedora-iot | |
parent | 628dd0cab6d36970d223a6c381d1472a7a1be379 (diff) |
cloud-builders.sh: put ks file here
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Change-Id: Ib74bc3102ea857387a4f85aaa825be82d0ce9dd2
Diffstat (limited to 'fedora-iot')
-rwxr-xr-x | fedora-iot/cloud-builders.sh | 4 | ||||
-rw-r--r-- | fedora-iot/f30-iot-aarch64.ks | 47 |
2 files changed, 49 insertions, 2 deletions
diff --git a/fedora-iot/cloud-builders.sh b/fedora-iot/cloud-builders.sh index eecee62f..e43ca7ba 100755 --- a/fedora-iot/cloud-builders.sh +++ b/fedora-iot/cloud-builders.sh @@ -47,7 +47,7 @@ cleanup_exit() sudo rm -f ${image_name}.img } -wget -q https://git.linaro.org/people/ilias.apalodimas/fedora-ks.git/plain/f30-iot-aarch64.ks -O f30-iot.ks +cat f30-iot-aarch64.ks > f30-iot.ks sudo virt-install \ --name ${image_name} \ @@ -56,7 +56,7 @@ sudo virt-install \ --os-variant fedora22 \ --ram 4096 --arch aarch64 \ --location https://dl.fedoraproject.org/pub/alt/iot/30/IoT/aarch64/os/,kernel=images/pxeboot/vmlinuz,initrd=images/pxeboot/initrd.img \ - --initrd-inject="f30-iot.ks" --extra-args "ks=https://git.linaro.org/people/ilias.apalodimas/fedora-ks.git/plain/f30-iot-aarch64.ks earlycon=pl011,0x3f201000 console=ttyAMA0" \ + --initrd-inject="f30-iot.ks" --extra-args "ks=http://git-us.linaro.org/ci/job/configs.git/plain/fedora-iot/f30-iot.ks earlycon=pl011,0x3f201000 console=ttyAMA0" \ --boot loader=/usr/share/AAVMF/AAVMF_CODE.fd,loader_ro=yes,loader_type=pflash,nvram_template=/usr/share/AAVMF/AAVMF_VARS.fd,loader_secure=no \ --noreboot diff --git a/fedora-iot/f30-iot-aarch64.ks b/fedora-iot/f30-iot-aarch64.ks new file mode 100644 index 00000000..ddcaa649 --- /dev/null +++ b/fedora-iot/f30-iot-aarch64.ks @@ -0,0 +1,47 @@ +#version=DEVEL +ignoredisk --only-use=vda +autopart --type=lvm + +# Partition clearing information +clearpart --all --initlabel --drives=vda +# OSTree setup +ostreesetup --osname="fedora-iot" --remote="fedora-iot" --url="file:///ostree/repo" --ref="fedora/stable/aarch64/iot" --nogpg +# Use network installation +url --url="https://kojipkgs.fedoraproject.org/compose/iot/Fedora-IoT-30-20190730.0/compose/IoT/aarch64/os/" +# Use graphical install +text +# Keyboard layouts +keyboard --vckeymap=us --xlayouts='us' +# System language +lang en_CA.UTF-8 + +# Root password +rootpw fedora + +# Run the Setup Agent on first boot +# firstboot --enable +# Do not configure the X Window System +skipx +# System services +services --enabled="chronyd" +# System timezone +timezone America/Rainy_River --isUtc +user --groups=wheel --name=tester --password=fedora --plaintext + +%post --erroronfail + +%wheel ALL=(ALL) ALL" >> /etc/sudoers +rm -f /etc/ostree/remotes.d/fedora-iot.conf +ostree remote add --set=gpg-verify=true --set=gpgkeypath=/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-iot-2019 fedora-iot 'https://dl.fedoraproject.org/iot/repo/' +cp /etc/skel/.bash* /root +%end + +%addon com_redhat_kdump --disable --reserve-mb='128' + +%end + +%anaconda +pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty +pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok +pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty +%end |