[Mageia-dev] [soft-commits] [2134] Do not include chroot path in symlink.

Thierry Vignaud thierry.vignaud at gmail.com
Mon Nov 7 16:31:57 CET 2011


On 7 November 2011 13:58,  <root at mageia.org> wrote:
> Modified: drakx-kbd-mouse-x11/trunk/lib/Xconfig/various.pm
> ===================================================================
> --- drakx-kbd-mouse-x11/trunk/lib/Xconfig/various.pm	2011-11-07 12:48:52 UTC
> (rev 2133)
> +++ drakx-kbd-mouse-x11/trunk/lib/Xconfig/various.pm	2011-11-07 12:58:09 UTC
> (rev 2134)
> @@ -227,8 +227,8 @@
>      -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);

BTW, you could have come with better names instead of 't' & 'd'....


More information about the Mageia-dev mailing list