summaryrefslogtreecommitdiffstats
path: root/tools/draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-12-29 18:10:46 +0000
committerOlivier Blin <oblin@mandriva.org>2005-12-29 18:10:46 +0000
commite1d43df708eec3961b5ebda07db8cda75c313cdb (patch)
tree1ba3310d93a256c4b5924d086851e740a2d88a02 /tools/draklive
parent837e9fccbbba95929bcbf7a96303fb9d2506e8dd (diff)
downloaddrakx-e1d43df708eec3961b5ebda07db8cda75c313cdb.tar
drakx-e1d43df708eec3961b5ebda07db8cda75c313cdb.tar.gz
drakx-e1d43df708eec3961b5ebda07db8cda75c313cdb.tar.bz2
drakx-e1d43df708eec3961b5ebda07db8cda75c313cdb.tar.xz
drakx-e1d43df708eec3961b5ebda07db8cda75c313cdb.zip
allow to use --boot-only for master/format/record steps
Diffstat (limited to 'tools/draklive')
-rwxr-xr-xtools/draklive7
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";