mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
New recipe: iso2tar.
This commit is contained in:
16
recipes/iso2tar.example
Normal file
16
recipes/iso2tar.example
Normal file
@@ -0,0 +1,16 @@
|
||||
$ ll -h /tmp/Fedora-11-Beta-i386-netinst.iso
|
||||
-r--r--r--. 1 rjones rjones 168M 2009-04-25 22:38 /tmp/Fedora-11-Beta-i386-netinst.iso
|
||||
$ ./iso2tar.sh /tmp/Fedora-11-Beta-i386-netinst.iso /tmp/cd.tar.gz
|
||||
$ ls -lh /tmp/cd.tar.gz
|
||||
-rw-rw-r--. 1 rjones rjones 177M 2009-04-25 22:50 /tmp/cd.tar.gz
|
||||
$ tar ztf /tmp/cd.tar.gz
|
||||
./
|
||||
./EFI/
|
||||
./EFI/BOOT/
|
||||
./EFI/BOOT/BOOT.conf
|
||||
./EFI/BOOT/BOOTIA32.conf
|
||||
./EFI/BOOT/splash.xpm.gz
|
||||
./EFI/BOOT/TRANS.TBL
|
||||
./images/
|
||||
./images/efiboot.img
|
||||
[etc]
|
||||
11
recipes/iso2tar.html
Normal file
11
recipes/iso2tar.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<p>
|
||||
Convert a CD-ROM or DVD ISO to a tarball.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Usage is very simple:
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
iso2tar.sh cd.iso output.tar.gz
|
||||
</pre>
|
||||
3
recipes/iso2tar.sh
Executable file
3
recipes/iso2tar.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh -
|
||||
|
||||
guestfish -a "$1" -m /dev/sda tgz-out / "$2"
|
||||
1
recipes/iso2tar.title
Normal file
1
recipes/iso2tar.title
Normal file
@@ -0,0 +1 @@
|
||||
Convert a CD-ROM or DVD ISO to a tarball
|
||||
Reference in New Issue
Block a user