You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
oem-factory-reset : Prompt user for any connected block device, give storage size and loop until none is connected to exit loop.
Warn user if connected usb block device is less then 128mb, since creating LUKS container of less then 8mb might cause issues.
Signed-off-by: Thierry Laurion <insurgo@riseup.net>
# confirm with user size of thumb drive to be wiped
455
+
whiptail --title "Confirm thumb drive to be wiped" --yesno "Are you sure you want to wipe the following thumb drive?\n\n$FILE\n\nSize: $thumb_drive_size_message" 0 0
456
+
if [ $?-ne 0 ];then
457
+
warn "Thumb drive wipe aborted by user!"
458
+
continue
459
+
fi
460
+
461
+
#User chose and confirmed a thumb drive and its size to be wiped
462
+
thumb_drive=$FILE
463
+
fi
464
+
else
465
+
#No USB storage device detected
466
+
warn "No USB storage device detected! Aborting OEM Factory Reset / Re-Ownership"
467
+
sleep 3
468
+
die "No USB storage device detected! User decided to not wipe any thumb drive"
469
+
fi
470
+
done
471
+
435
472
select_luks_container_size_percent
436
473
#Wipe thumb drive with a LUKS container of size $(cat /tmp/luks_container_size_percent)
0 commit comments