Few minor tweaks to install to disk script.

This commit is contained in:
Storm Dragon
2025-07-16 13:46:43 -04:00
parent 35392237f9
commit d2e82fadf0

View File

@@ -124,6 +124,14 @@ if [[ "$CONFIRM" != "yes" ]]; then
exit 0
fi
# Rely on progress bar beeps for status
echo
echo "Fenrir will be silent during the install process except for progress beeps."
echo "To restore speech if needed, press any key."
echo "Press Enter to begin installation..."
read -r
echo "command tempdisablespeech" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-deamon.sock 2>/dev/null || true
# Unmount any mounted partitions on target disk
echo "Unmounting target disk partitions..."
sudo umount "${TARGET_DEVICE}"* 2>/dev/null || true
@@ -134,7 +142,7 @@ echo "This will take several minutes depending on USB size and disk speed."
echo
# Use dd to clone the entire device
if ! sudo dd if="$SOURCE_DEVICE" of="$TARGET_DEVICE" bs=4M status=progress; then
if ! sudo dd if="$SOURCE_DEVICE" of="$TARGET_DEVICE" bs=4M oflag=sync status=progress; then
error_exit "Failed to clone USB to target disk"
fi
@@ -171,7 +179,6 @@ if sudo mount "$TARGET_ROOT_PART" "$TEMP_MOUNT" 2>/dev/null; then
sudo rm -f "$TEMP_MOUNT/home/stormux/.firstboot" 2>/dev/null || true
# Update any USB-specific configurations if needed
# (Add any specific cleanups here)
sudo umount "$TEMP_MOUNT"
fi