summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-12-15 18:40:24 +0000
committerOlivier Blin <oblin@mandriva.org>2005-12-15 18:40:24 +0000
commit97ad2e9492c703bac58ba8abfbb56894646d2e54 (patch)
treeccd212b6e84743cc8e8e3e4836399e7ab1a698de /tools
parentd5cb89c3e9961c57ff19b020d6c1b874f9657673 (diff)
downloaddrakx-97ad2e9492c703bac58ba8abfbb56894646d2e54.tar
drakx-97ad2e9492c703bac58ba8abfbb56894646d2e54.tar.gz
drakx-97ad2e9492c703bac58ba8abfbb56894646d2e54.tar.bz2
drakx-97ad2e9492c703bac58ba8abfbb56894646d2e54.tar.xz
drakx-97ad2e9492c703bac58ba8abfbb56894646d2e54.zip
record live cdroms using cdrecord
Diffstat (limited to 'tools')
-rwxr-xr-xtools/draklive9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/draklive b/tools/draklive
index f4b15329b..7c445294f 100755
--- a/tools/draklive
+++ b/tools/draklive
@@ -226,6 +226,7 @@ my %storage = (
read_only => 1,
modules => 'disk/cdrom|hardware_raid|sata|scsi bus/usb disk/raw',
create => \&create_cdrom_master,
+ record => \&record_cdrom_master,
},
usb => {
modules => 'bus/usb disk/raw|usb',
@@ -502,6 +503,14 @@ sub create_master {
}
}
+sub record_cdrom_master {
+ my ($live, $o_refresh_boot_only) = @_;
+ $o_refresh_boot_only and die "record boot isn't possible for cdrom master";
+ $live->{media}{device} or die "no device defined in media configuration";
+ my $src = $live->{images_dir} . '/live.iso';
+ run_('cdrecord', '-v', 'dev=' . $live->{media}{device}, $src);
+}
+
sub record_usb_master {
my ($live, $o_refresh_boot_only) = @_;
my $label = get_media_label($live);