diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-12-29 18:10:46 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-12-29 18:10:46 +0000 |
commit | e1d43df708eec3961b5ebda07db8cda75c313cdb (patch) | |
tree | 1ba3310d93a256c4b5924d086851e740a2d88a02 /tools | |
parent | 837e9fccbbba95929bcbf7a96303fb9d2506e8dd (diff) | |
download | drakx-backup-do-not-use-e1d43df708eec3961b5ebda07db8cda75c313cdb.tar drakx-backup-do-not-use-e1d43df708eec3961b5ebda07db8cda75c313cdb.tar.gz drakx-backup-do-not-use-e1d43df708eec3961b5ebda07db8cda75c313cdb.tar.bz2 drakx-backup-do-not-use-e1d43df708eec3961b5ebda07db8cda75c313cdb.tar.xz drakx-backup-do-not-use-e1d43df708eec3961b5ebda07db8cda75c313cdb.zip |
allow to use --boot-only for master/format/record steps
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/draklive | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/draklive b/tools/draklive index 9e32098d0..75697349d 100755 --- a/tools/draklive +++ b/tools/draklive @@ -570,7 +570,7 @@ sub create_master { my ($live, $opts) = @_; my $media = $opts->{media} || $live->{media}; - if (my $create = get_storage_setting($media, 'create')) { + if (my $create = get_boot_setting($media, 'create', $opts->{boot_only})) { $create->($live, $media, $opts); } else { warn "not implemented yet"; @@ -601,7 +601,7 @@ sub format_device { my $media = $opts->{media} || $live->{media}; $media->{device} or die "no device defined in media configuration"; - if (my $format = get_storage_setting($media, 'format')) { + if (my $format = get_boot_setting($media, 'format', $opts->{boot_only})) { $format->($live, $media); } else { warn "not implemented yet"; @@ -610,7 +610,6 @@ sub format_device { sub record_cdrom_master { my ($live, $media, $opts) = @_; - $opts->{boot_only} and die "record boot isn't possible for cdrom master"; $media->{device} or die "no device defined in media configuration"; my $src = $opts->{onthefly} ? '-' : $live->{workdir} . $live->{prefix}{images} . '/live.iso'; run_('cdrecord', '-v', 'dev=' . $media->{device}, $src); @@ -645,7 +644,7 @@ sub record_master { my ($live, $opts) = @_; my $media = $opts->{media} || $live->{media}; - if (my $record = get_storage_setting($media, 'record')) { + if (my $record = get_boot_setting($media, 'record', $opts->{boot_only})) { $record->($live, $media, $opts); } else { warn "not implemented yet"; |