summaryrefslogtreecommitdiffstats
path: root/draklive-install
diff options
context:
space:
mode:
Diffstat (limited to 'draklive-install')
-rwxr-xr-xdraklive-install3
1 files changed, 2 insertions, 1 deletions
diff --git a/draklive-install b/draklive-install
index 7d36666..91e350e 100755
--- a/draklive-install
+++ b/draklive-install
@@ -152,7 +152,8 @@ sub init_hds {
#- fs::any::get_hds does not return mounts that are not in fstab
my @mounted = fs::read_fstab('', '/proc/mounts');
- my $live_device = cat_('/run/mgalive/basedev');
+ my $live_device = basename(cat_('/run/mgalive/basedev'));
+ chomp($live_device);
#- remove live device from the detected hds, so that bootloader is not installed on it:
#- bootloader installation uses first device from detect_devices::get, which tries to list devices
#- by booting order, and our live system is likely to be here in first position