livecd-iso-to-disk.sh and MBR
by D. Hugh Redelmeier
I built a bootable USB stick using:
sudo ./livecd-iso-to-disk.sh \
--format \
--overlay-size-mb 4095 \
--home-size-mb 200 \
--unencrypted-home \
Fedora-Live-Desktop-x86_64-19-1.iso \
/dev/sdi
The USB was a Kingston DT101 G2 8GB unit, fresh out of the package. I
have no idea what Kingston loaded onto the MBR. It has a single VFAT
paritition with a few freebie Windows utilities.
It would not boot after running livecd-iso-to-disk (I had no reason to
try booting it before).
So I did the whole thing over again with --reset-mbr
And then it worked.
I don't really understand when one needs to reset the MBR and when one
doesn't. The documentation seems to suggest that one only needs to do
this when things have gone wrong.
This may be helpful in recovering a damaged or corrupted
device.
My experience suggests that this isn't the complete story.
Is there a way of doing --reset-mbr that doesn't require redoing the
whole job of building a bootable USB stick?
Should --format imply --reset-mbr?
It seems that --format requires that the syslinux package be
installed. Is it always installed or should the dependency be noted?
(When I learned about PC Master Boot Records, decades ago, they were a
clever bit of code that just loaded and branched to the boot record of
the first primary or extended partition that was marked with the
"active" flag. The primary partition table was embedded in the MBR.
I guess it's no longer that simple.)
10 years, 9 months
Branch 'f17-branch' - imgcreate/yuminst.py
by Brian C. Lane
imgcreate/yuminst.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit cacf438723482b18bbbb3e6dc4a7f707cfed64e3
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Wed Jul 10 11:15:52 2013 -0700
ts.check output is a list of tuples (#979759)
diff --git a/imgcreate/yuminst.py b/imgcreate/yuminst.py
index 8581978..4c1f38f 100644
--- a/imgcreate/yuminst.py
+++ b/imgcreate/yuminst.py
@@ -215,7 +215,7 @@ class LiveCDYum(yum.YumBase):
self.populateTs(keepold=0)
deps = self.ts.check()
if len(deps) != 0:
- raise CreatorError("Dependency check failed : %s" % "\n".join(deps))
+ raise CreatorError("Dependency check failed : %s" % "\n".join([str(d) for d in deps]))
rc = self.ts.order()
if rc != 0:
raise CreatorError("ordering packages for installation failedr. rc = %s" % rc)
10 years, 9 months
Branch 'f18-branch' - imgcreate/yuminst.py
by Brian C. Lane
imgcreate/yuminst.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit fcbcfb23b56af00d3b6c7c514604aaf76133b136
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Wed Jul 10 11:15:52 2013 -0700
ts.check output is a list of tuples (#979759)
diff --git a/imgcreate/yuminst.py b/imgcreate/yuminst.py
index 6b1698f..157c2bd 100644
--- a/imgcreate/yuminst.py
+++ b/imgcreate/yuminst.py
@@ -216,7 +216,7 @@ class LiveCDYum(yum.YumBase):
self.populateTs(keepold=0)
deps = self.ts.check()
if len(deps) != 0:
- raise CreatorError("Dependency check failed : %s" % "\n".join(deps))
+ raise CreatorError("Dependency check failed : %s" % "\n".join([str(d) for d in deps]))
rc = self.ts.order()
if rc != 0:
raise CreatorError("ordering packages for installation failedr. rc = %s" % rc)
10 years, 9 months
imgcreate/yuminst.py
by Brian C. Lane
imgcreate/yuminst.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5e447177b43ac3179b600df5604f2b3000cc7d2a
Author: Brian C. Lane <bcl(a)redhat.com>
Date: Wed Jul 10 11:15:52 2013 -0700
ts.check output is a list of tuples (#979759)
diff --git a/imgcreate/yuminst.py b/imgcreate/yuminst.py
index 31b2f36..ea44737 100644
--- a/imgcreate/yuminst.py
+++ b/imgcreate/yuminst.py
@@ -217,7 +217,7 @@ class LiveCDYum(yum.YumBase):
self.populateTs(keepold=0)
deps = self.ts.check()
if len(deps) != 0:
- raise CreatorError("Dependency check failed : %s" % "\n".join(deps))
+ raise CreatorError("Dependency check failed : %s" % "\n".join([str(d) for d in deps]))
rc = self.ts.order()
if rc != 0:
raise CreatorError("ordering packages for installation failedr. rc = %s" % rc)
10 years, 9 months