projects
/
live-initramfs-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a5a630f
)
Do not support raw images on block devices. This is too unreliable for robust booting.
author
Michael Prokop
<mika@grml.org>
Thu, 27 May 2010 21:44:07 +0000
(23:44 +0200)
committer
Michael Prokop
<mika@grml.org>
Thu, 27 May 2010 21:44:07 +0000
(23:44 +0200)
Thanks to thefuf for bringing up.
debian/patches/12_uuid_support.dpatch
patch
|
blob
|
history
diff --git
a/debian/patches/12_uuid_support.dpatch
b/debian/patches/12_uuid_support.dpatch
index
85bb1db
..
48330bb
100755
(executable)
--- a/
debian/patches/12_uuid_support.dpatch
+++ b/
debian/patches/12_uuid_support.dpatch
@@
-12,10
+12,10
@@
## DP: * no bootid.txt + ignore_bootid=... => boots
@DPATCH@
## DP: * no bootid.txt + ignore_bootid=... => boots
@DPATCH@
-diff -urNad live-initramfs-grml~/scripts/live live-initramfs-grml/scripts/live
---- live-initramfs-grml~/scripts/live 2010-0
2-01 20:31:44.410884646 +01
00
-+++ live-initramfs-grml/scripts/live 2010-0
2-01 20:32:09.131721944 +01
00
-@@ -
54,6 +54
,12 @@
+diff -urNad
'--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr'
live-initramfs-grml~/scripts/live live-initramfs-grml/scripts/live
+--- live-initramfs-grml~/scripts/live 2010-0
5-27 23:42:10.129873950 +02
00
++++ live-initramfs-grml/scripts/live 2010-0
5-27 23:43:46.209031380 +02
00
+@@ -
85,6 +85
,12 @@
export ACCESS
;;
export ACCESS
;;
@@
-28,7
+28,7
@@
diff -urNad live-initramfs-grml~/scripts/live live-initramfs-grml/scripts/live
console=*)
DEFCONSOLE="${ARGUMENT#*=}"
export DEFCONSOLE
console=*)
DEFCONSOLE="${ARGUMENT#*=}"
export DEFCONSOLE
-@@ -1
29,6 +135
,11 @@
+@@ -1
65,6 +171
,11 @@
export USERFULLNAME LIVECONF
;;
export USERFULLNAME LIVECONF
;;
@@
-40,7
+40,7
@@
diff -urNad live-initramfs-grml~/scripts/live live-initramfs-grml/scripts/live
ignore_uuid)
IGNORE_UUID="Yes"
export IGNORE_UUID
ignore_uuid)
IGNORE_UUID="Yes"
export IGNORE_UUID
-@@ -5
56,6 +567
,41 @@
+@@ -5
97,6 +608
,41 @@
return 1
}
return 1
}
@@
-82,8
+82,8
@@
diff -urNad live-initramfs-grml~/scripts/live live-initramfs-grml/scripts/live
matches_uuid ()
{
if [ "${IGNORE_UUID}" ] || [ ! -e /conf/uuid.conf ]
matches_uuid ()
{
if [ "${IGNORE_UUID}" ] || [ ! -e /conf/uuid.conf ]
-@@ -1
504,7 +1550
,7 @@
- fi
+@@ -1
616,7 +1662
,7 @@
+ fi
if is_live_path ${mountpoint} && \
- ([ "${skip_uuid_check}" ] || matches_uuid ${mountpoint})
if is_live_path ${mountpoint} && \
- ([ "${skip_uuid_check}" ] || matches_uuid ${mountpoint})
@@
-91,3
+91,22
@@
diff -urNad live-initramfs-grml~/scripts/live live-initramfs-grml/scripts/live
then
echo ${mountpoint}
return 0
then
echo ${mountpoint}
return 0
+@@ -1731,18 +1777,6 @@
+ return 0
+ fi
+ done
+- elif [ "${fstype}" = "squashfs" -o \
+- "${fstype}" = "ext2" -o \
+- "${fstype}" = "ext3" -o \
+- "${fstype}" = "ext4" -o \
+- "${fstype}" = "jffs2" ]
+- then
+- # This is an ugly hack situation, the block device has
+- # an image directly on it. It's hopefully
+- # live-initramfs, so take it and run with it.
+- ln -s "${devname}" "${devname}.${fstype}"
+- echo "${devname}.${fstype}"
+- return 0
+ fi
+ done
+