summaryrefslogtreecommitdiff
path: root/config/chroot_local-patches/live-boot_retry_message.patch
blob: 4f067184d6e94a5edf2090395b377f40e87c1dd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- /usr/share/initramfs-tools/scripts/live	2012-03-13 16:34:26.762752002 +0100
+++ /usr/share/initramfs-tools/scripts/live	2012-03-13 16:43:57.482752002 +0100
@@ -1973,6 +1973,16 @@
 					break
 				fi
 
+				if [ "$i" -eq 10 ]
+				then
+					msg="live-boot has trouble finding your live-media... try unplugging and plugging it in again"
+					if [ -x /bin/plymouth ] && plymouth --ping; then
+						plymouth message --text="$msg"
+					else
+						echo "$msg" >&2
+					fi
+				fi
+
 				sleep 1
 				i="$(($i + 1))"
 			done