From 51a9f171a5de469910dcf8a4fc1f34e042e17fac Mon Sep 17 00:00:00 2001 From: "mjw@wray-m-3.hpl.hp.com" Date: Thu, 28 Apr 2005 12:27:47 +0000 Subject: bitkeeper revision 1.1327.2.13 (4270d6c35WpxFmhdkREjmSvk82s-Bg) Merge Jeremy's pygrub bootloader patch. Signed-off-by: Jeremy Katz Signed-off-by: Mike Wray --- tools/pygrub/src/fsys/ext2/test.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tools/pygrub/src/fsys/ext2/test.py (limited to 'tools/pygrub/src/fsys/ext2/test.py') diff --git a/tools/pygrub/src/fsys/ext2/test.py b/tools/pygrub/src/fsys/ext2/test.py new file mode 100644 index 0000000000..eeb79506ee --- /dev/null +++ b/tools/pygrub/src/fsys/ext2/test.py @@ -0,0 +1,15 @@ +#!/usr/bin/python + + +import _pyext2 +import struct, os, sys + +fs = _pyext2.Ext2Fs("test.img") + +f = fs.open_file("/boot/vmlinuz-2.6.11-1.1177_FC4") +buf = f.read() +o = open("vmlinuz", "wb+") +o.write(buf) +o.close() + +f.close() -- cgit v1.2.3