@@ -105,7 +105,9 @@ main() {
105
105
echo " Expand or Install?: "
106
106
echo " The currently booted device is ${BOOT_DEVICE_NO_P} "
107
107
while true ; do
108
+ dmesg -D
108
109
read -r -p " [I]nstall or [E]xpand?" IE
110
+ dmesg -E
109
111
case $IE in
110
112
[Ii]* ) install; break ;;
111
113
[Ee]* ) expand; break ;;
@@ -118,6 +120,7 @@ main() {
118
120
# if target is usb, and boot device is usb, target is sdb
119
121
# and whether to enable crypto
120
122
install () {
123
+ dmesg -D
121
124
echo " Pick an install target. This can be the Internal Emmc, an SD card, or a USB device"
122
125
echo " Please ensure you have only have the booted device and the desired target device inserted."
123
126
echo " The currently booted device is ${BOOT_DEVICE_NO_P} "
@@ -130,6 +133,7 @@ install() {
130
133
* ) echo " Please answer I, S, or U" ;;
131
134
esac
132
135
done
136
+ dmesg -E
133
137
if [[ $TARGET == " USB" ]]
134
138
then
135
139
if [[ $BOOT_DEVICE_NO_P == " /dev/sda" ]]
@@ -157,7 +161,9 @@ install() {
157
161
158
162
# Now on to the installation, basically copy InstallToInternal.sh
159
163
while true ; do
164
+ dmesg -D
160
165
read -r -p " This will ERASE ALL DATA ON ${TARGET_NO_P} and reboot when finished, do you want to continue? [y/N]" yn
166
+ dmesg -E
161
167
case $yn in
162
168
[Yy]* ) break ;;
163
169
[Nn]* ) exit ;;
@@ -232,7 +238,9 @@ install() {
232
238
echo " ${ROOT_PARTITION} / ext4 defaults,noatime 0 1" > $INSTALL_MOUNT /etc/fstab
233
239
234
240
while true ; do
241
+ dmesg -D
235
242
read -r -p " Install a desktop environment and the supporting packages? [Y/n]" ins
243
+ dmesg -E
236
244
case $ins in
237
245
[Yy]* ) install_packages $INSTALL_MOUNT ; break ;;
238
246
[Nn]* ) break ;;
@@ -353,10 +361,12 @@ expand() {
353
361
resize2fs -f ${BOOT_DEVICE} 2
354
362
echo " /dev/${BOOT_DEVICE} 2 / ext4 defaults,noatime 0 1" > /etc/fstab
355
363
while true ; do
364
+ dmesg -D
356
365
read -r -p " Install a desktop environment and the supporting packages? [Y/n]" ins
366
+ dmesg -E
357
367
case $ins in
358
- [Yy]* ) $SCRIPTS /InstallPackages.sh;;
359
- [Nn]* ) exit ;;
368
+ [Yy]* ) $SCRIPTS /InstallPackages.sh; break ; ;
369
+ [Nn]* ) break ;;
360
370
* ) echo " Please answer y or n" ;;
361
371
esac
362
372
done
0 commit comments