diff options
author | Colin Guthrie <colin@mageia.org> | 2011-11-07 12:58:09 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2011-11-07 12:58:09 +0000 |
commit | 090102edc018a659ce601bb2ee6f9065e4c111fc (patch) | |
tree | b653f5f49dc9e454e0381b73cdd95c73d6a35536 /lib | |
parent | 205b2992408d2690ea4ff1410cdf3b14a7976895 (diff) | |
download | drakx-kbd-mouse-x11-090102edc018a659ce601bb2ee6f9065e4c111fc.tar drakx-kbd-mouse-x11-090102edc018a659ce601bb2ee6f9065e4c111fc.tar.gz drakx-kbd-mouse-x11-090102edc018a659ce601bb2ee6f9065e4c111fc.tar.bz2 drakx-kbd-mouse-x11-090102edc018a659ce601bb2ee6f9065e4c111fc.tar.xz drakx-kbd-mouse-x11-090102edc018a659ce601bb2ee6f9065e4c111fc.zip |
Do not include chroot path in symlink.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Xconfig/various.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Xconfig/various.pm b/lib/Xconfig/various.pm index d2eb74e..88df792 100644 --- a/lib/Xconfig/various.pm +++ b/lib/Xconfig/various.pm @@ -227,8 +227,8 @@ sub runlevel { -r $f or log::l("missing inittab!!!"), return; if ($o_runlevel) { substInFile { s/^id:\d:initdefault:\s*$/id:$o_runlevel:initdefault:\n/ } $f if !$::testing; - my $t = "$::prefix/lib/systemd/system/runlevel$o_runlevel.target"; - if (!$::testing && -f $t) { + my $t = "/lib/systemd/system/runlevel$o_runlevel.target"; + if (!$::testing && -f "$::prefix$t") { my $d = "$::prefix/etc/systemd/system/default.target"; unlink($d); symlink($t, $d); |