From 0df88ae4571748e15f6ae57b1c68ef67c000fd4f Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 30 May 2008 13:32:10 +0000 Subject: allow to specify custom copy source in /etc/sysconfig/draklive-install (to copy unmodified distro from Mandriva Flash) --- draklive-install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'draklive-install') diff --git a/draklive-install b/draklive-install index f2b2ab1..4dbd6ce 100755 --- a/draklive-install +++ b/draklive-install @@ -44,7 +44,11 @@ sub install_live() { my $all_hds = {}; my $fstab = []; $::prefix = '/mnt/install'; - my $copy_source = '/'; + + my $system_file = '/etc/sysconfig/draklive-install'; + my %settings = getVarsFromSh($system_file); + + my $copy_source = $settings{SOURCE} || '/'; display_start_message(); init_hds($in, $all_hds, $fstab); -- cgit v1.2.1