Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (0399d9c1077b4b429a2965ff67f8fac2a31ab6a0)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (0399d9c1077b4b429a2965ff67f8fac2a31ab6a0)
  • Date: Fri, 25 Apr 2014 01:05:35 -0500

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

disk/lilo/CONFIGURE | 4 +++-
disk/lilo/HISTORY | 6 ++++++
disk/lilo/PRE_BUILD | 6 +++++-
disk/lilo/xvd.patch | 29 +++++++++++++++++++++++++++++
4 files changed, 43 insertions(+), 2 deletions(-)

New commits:
commit 0399d9c1077b4b429a2965ff67f8fac2a31ab6a0
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

lilo: added patch for Xen XVD disks recognition

diff --git a/disk/lilo/CONFIGURE b/disk/lilo/CONFIGURE
index cd4cb2e..35e828e 100755
--- a/disk/lilo/CONFIGURE
+++ b/disk/lilo/CONFIGURE
@@ -1 +1,3 @@
-config_query RUN_LILO "Run LILO automatically upon LILO upgrades?" n
+config_query RUN_LILO "Run LILO automatically upon LILO upgrades?" n &&
+
+config_query LILO_XVD "Apply patch to get lilo to recognize Xen XVD disks?" n
diff --git a/disk/lilo/HISTORY b/disk/lilo/HISTORY
index 85e7196..a4f9512 100644
--- a/disk/lilo/HISTORY
+++ b/disk/lilo/HISTORY
@@ -1,3 +1,9 @@
+2014-04-25 Vlad Glagolev <stealth AT sourcemage.org>
+ * CONFIGURE: added option to apply XVD patch
+ * PRE_BUILD: apply patch
+ * xvd.patch: added, patch by Lloyd Richardson <lloyd AT drlabs.org> and
+ Bostjan Skufca <bostjan AT a2o.si> for Xen XVD disks recognition
+
2013-08-06 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
* DETAILS: version 24.0
* PRE_BUILD, 0001-fix-failure-during-install.patch: fix failure
during install
diff --git a/disk/lilo/PRE_BUILD b/disk/lilo/PRE_BUILD
index 1787098..1be3d3e 100755
--- a/disk/lilo/PRE_BUILD
+++ b/disk/lilo/PRE_BUILD
@@ -1,3 +1,7 @@
default_pre_build &&
cd ${SOURCE_DIRECTORY} &&
-patch -p1 < $SPELL_DIRECTORY/0001-fix-failure-during-install.patch
+patch -p1 < $SPELL_DIRECTORY/0001-fix-failure-during-install.patch &&
+
+if [[ $LILO_XVD == y ]]; then
+ patch -p0 < "$SPELL_DIRECTORY/xvd.patch"
+fi
diff --git a/disk/lilo/xvd.patch b/disk/lilo/xvd.patch
new file mode 100644
index 0000000..35e2ce6
--- /dev/null
+++ b/disk/lilo/xvd.patch
@@ -0,0 +1,29 @@
+--- src/geometry.c.orig
++++ src/geometry.c
+@@ -339,7 +339,7 @@ unsigned char max_partno[512] = {
+ 31, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+
+- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* Cx
*/
++ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, /* Cx
*/
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+@@ -670,6 +670,7 @@ void geo_query_dev(GEOMETRY *geo,int device,int all)
+ case MAJOR_SD6:
+ case MAJOR_SD7:
+ case MAJOR_SD8:
++ case MAJOR_XVD:
+ MASK15:
+ geo->device = 0x80 + last_dev(MAJOR_HD,64) + (MINOR(device) >> 4);
+ if (!get_all) break;
+--- src/lilo.h.orig
++++ src/lilo.h
+@@ -148,6 +148,7 @@
+ #define MAJOR_EMD 153 /* Enhanced multi-disk RAID sets */
+ #define MAJOR_CARM1 160 /* Carmel SATA Disk on first 8-port controller */
+ #define MAJOR_CARM2 161 /* Carmel SATA Disk on 2nd 8-port controller */
++#define MAJOR_XVD 202 /* xen xvd disks */
+
+ /* don't use the following */
+ #define MAJOR_MDP 254 /* Enhanced multi-disk RAID sets [experimental?]
*/



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (0399d9c1077b4b429a2965ff67f8fac2a31ab6a0), Vlad Glagolev, 04/25/2014

Archive powered by MHonArc 2.6.24.

Top of Page