Skip to content

Commit a0c0619

Browse files
committed
feat: better installer
1 parent dfe9c5f commit a0c0619

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎image-factory/create_image.sh‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,13 @@ else
145145
fi
146146
sync
147147

148+
modprobe loop || true
149+
148150
# Setup loop device
149-
LOOPDEV="$(losetup --find --show "${IMAGE}")"
151+
if ! LOOPDEV="$(losetup --find --show "${IMAGE}")"; then
152+
raise "Failed to setup loop device. Please try again. Ensure loop module is loaded."
153+
fi
154+
150155
partprobe "${LOOPDEV}"
151156

152157
# Map partitions

‎installer-factory/initramfs-tools/scripts/init-premount/cuos-installer‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ INNEREOF
213213

214214
sync
215215
dialog --backtitle "Installer" --title "Image sucessfully written to disk" --infobox "\nThe system will reboot now.\n\nEnsure to boot from the selected disk." 10 70
216-
sleep 1
216+
sleep 2
217217
#sh
218218
reboot -f
219219
}

0 commit comments

Comments
 (0)