From f4b3bee699da130e07cad2b69aad71e54b98b951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Sedl=C3=A1k?= Date: Mon, 17 Aug 2015 17:20:43 +0200 Subject: [PATCH] add creation of disk containing updates.img Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D494 --- createhdds.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/createhdds.sh b/createhdds.sh index bb215ca..76417f3 100755 --- a/createhdds.sh +++ b/createhdds.sh @@ -91,12 +91,27 @@ upload /tmp/root-user-crypted-net.ks /root-user-crypted-net.ks _EOF_ } +function disk_updates_img { +echo "Creating disk_updates_img.img..." +curl --silent -o "/tmp/updates.img" "https://fedorapeople.org/groups/qa/updates/updates-unipony.img" > /dev/null +guestfish <<_EOF_ +sparse disk_updates_img.img 100MB +run +part-init /dev/sda mbr +part-add /dev/sda p 4096 -1 +mkfs ext4 /dev/sda1 label:UPDATES_IMG +mount /dev/sda1 / +upload /tmp/updates.img /updates.img +_EOF_ +} + if [ "$#" -eq 0 ]; then disk_full disk_freespace disk_f22_minimal disk_f22_desktop disk_ks + disk_updates_img else case $1 in full) @@ -114,8 +129,11 @@ else ks) disk_ks ;; + updates) + disk_updates_img + ;; *) - echo "$0 [full|freespace|minimal|desktop|ks]" + echo "$0 [full|freespace|minimal|desktop|ks|updates]" ;; esac fi