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 153659 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.
New mk-rescueimage.ia64
mk-rescueimage.ia64 (text/plain), 1.79 KB, created by
Prarit Bhargava
on 2007-04-27 19:05:25 UTC
(
hide
)
Description:
New mk-rescueimage.ia64
Filename:
MIME Type:
Creator:
Prarit Bhargava
Created:
2007-04-27 19:05:25 UTC
Size:
1.79 KB
patch
obsolete
>#!/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 -ar %s/images/* %s/images" % (srcdir, destdir)) > ># PRARIT did not execute the below ... > ># 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("echo \"\tappend=\"rescue\"\" >> %s/mnt/elilo.conf" % (destdir,)) >os.system("cp -f %s/mnt/elilo.conf %s/mnt/efi/boot/elilo.conf" % (destdir, 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 Raw
Actions:
View
Attachments on
bug 236211
:
152462
|
152463
|
153627
| 153659