Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 152463 Details for
Bug 236211
Make a rescue image for ia64
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fedora fix for this issue
236211.patch (text/plain), 2.68 KB, created by
Prarit Bhargava
on 2007-04-12 15:15:14 UTC
(
hide
)
Description:
Fedora fix for this issue
Filename:
MIME Type:
Creator:
Prarit Bhargava
Created:
2007-04-12 15:15:14 UTC
Size:
2.68 KB
patch
obsolete
>diff -urNp anaconda-11.2.0.46.orig/scripts/mk-rescueimage.ia64 anaconda-11.2.0.46/scripts/mk-rescueimage.ia64 >--- anaconda-11.2.0.46.orig/scripts/mk-rescueimage.ia64 1969-12-31 19:00:00.000000000 -0500 >+++ anaconda-11.2.0.46/scripts/mk-rescueimage.ia64 2007-04-12 11:13:16.000000000 -0400 >@@ -0,0 +1,77 @@ >+#!/usr/bin/python >+# >+# mk-rescueimage.ia64 - builds a rescue image from an existing tree >+# which can be converted into a isolinux bootable >+# iso and used as a sysadmin rescue image. >+# >+# >+# Usage: mk-rescueimage.ia64 <src-tree> <dest-dir> <productname> >+# >+# the rescue image will be created as <dest-dir>/ia64-rescueimage >+# >+ >+import os >+import sys >+import string >+ >+def usage(): >+ print "usage: mk-rescueimage.ia64 <toplevel> <dest-dir> <productname> <productpath>" >+ >+if len(sys.argv) < 5: >+ usage() >+ sys.exit(1) >+ >+if not os.access("%s" % (sys.argv[2],), os.F_OK): >+ print "ERROR - Destination directory %s does not exist!" % (sys.argv[2],) >+ sys.exit(1) >+ >+srcdir = sys.argv[1] >+destdir = sys.argv[2]+"/ia64-rescueimage" >+productname = sys.argv[3] >+productpath = sys.argv[4] >+ >+# clean and create destination directory >+os.system("rm -rf %s" % (destdir,)) >+os.system("mkdir %s" % (destdir,)) >+ >+# copy documentation >+for pat in ["*eula*", "*EULA*", "README*", "RELEASE*", "GPL", "RPM-*"]: >+ os.system("cp -p %s/%s %s/ 2>/dev/null" % (srcdir, pat, destdir)) >+ >+# cp boot.img, etc., into images >+os.system("mkdir -p %s/images" % (destdir,)) >+os.system("cp -a %s/image/ %s/images" % (srcdir, destdir)) >+ >+# munge elilo.conf to have a default of rescue mode >+os.system("mkdir %s/mnt" % (destdir,)) >+os.system("mount -oloop %s/images/boot.img %s/mnt" % (destdir, destdir)) >+elilofile = open("%s/mnt/elilo.conf" % (destdir,), "r") >+elilolines = elilofile.readlines() >+elilofile.close() >+ >+# backup old one >+os.system("cp %s/mnt/elilo.conf %s/mnt/elilo.conf.backup" % (destdir, destdir)) >+ >+cfgfile = open("%s/mnt/elilo.conf" % (destdir,), "w+") >+fndit=0 >+for l in cfglines: >+ if string.find(l, "label=linux") != -1: >+ findit=1 >+ defaultimg = string.stripg(string.split(l, "=")[1]) >+ elilofile.write("rescue\n") >+ continue >+ >+cfgfile.close() >+ >+if not fndit: >+ print "Could not find default stanza, did not modify isolinux.cfg" >+ os.system("mv -f %s/isolinux/isolinux.cfg.backup %s/isolinux/isolinux.cfg" % (destdir,destdir)) >+else: >+ os.system("rm -f %s/isolinux/isolinux.cfg.backup" % (destdir,)) >+ >+os.system("echo read-only >> %s/mnt/elilo.conf" % (destdir,)) >+os.system("echo append=rescue >> %s/mnt/elilo.conf" % (destdir,)) >+ >+# cleanup >+os.system("umount %s/mnt" % (destdir,)) >+os.system("rm -rf %s/mnt" % (destdir,))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 236211
:
152462
|
152463
|
153627
|
153659