Il problema è il seguente io vorrei impostare il runlevel di systemd io utilizzo Fedora16 - linux 3.1.0-7 con kde 4.7.4 e utilizzo kdm-4.7.4-9 e utilizzo grub2-1.99-13 ho provato ha moificare il runlevel 3 portandolo a runlevel 5 ma non sono riuscito l'output del inittab è il seguente:
[perseo@Perseo system]$ cat /etc/inittab # inittab is no longer used when using systemd. # # ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM. # # Ctrl-Alt-Delete is handled by /etc/systemd/system/ctrl-alt-del.target # # systemd uses 'targets' instead of runlevels. By default, there are two main targets: # # multi-user.target: analogous to runlevel 3 # graphical.target: analogous to runlevel 5 # # To set a default target, run: # # ln -s /lib/systemd/system/<target name>.target /etc/systemd/system/default.target #
l'output del systemd/system/default.conf
[perseo@Perseo system]$ cat ./default.target # This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # See systemd.special(7) for details [Unit] Description=Graphical Interface Requires=graphical.target After=multi-user.target Conflicts=rescue.target AllowIsolate=yes [Install] Alias=default.target
ho provato modificando il default.target ma non è servito ho provato lanciare il comando
sudo systemctl isolate runlevel5.targetma neanche questo ha funzionato ho provato a controllare il file runlevel5.target e l'output è il seguente:
[perseo@Perseo graphical.target.wants]$ cat /lib/systemd/system/runlevel5.target # This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # See systemd.special(7) for details [Unit] Description=Graphical Interface Requires=graphical.target After=multi-user.target Conflicts=rescue.target AllowIsolate=yes [Install] Alias=default.target
ho verificato il contenuto di graphical.target e il risultato è il seguente:
# This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # See systemd.special(7) for details [Unit] Description=Graphical Interface Requires=graphical.target After=multi-user.target Conflicts=rescue.target AllowIsolate=yes [Install] Alias=default.target
ho verificato che i link fossero corretti gli output sono i seguenti
[perseo@Perseo system]$ ls -al | grep "run" lrwxrwxrwx. 1 root root 15 16 feb 07.53 runlevel0.target -> poweroff.target lrwxrwxrwx. 1 root root 13 16 feb 07.53 runlevel1.target -> rescue.target drwxr-xr-x. 2 root root 4096 16 feb 07.53 runlevel1.target.wants lrwxrwxrwx. 1 root root 17 16 feb 07.53 runlevel2.target -> multi-user.target drwxr-xr-x. 2 root root 4096 16 feb 07.53 runlevel2.target.wants lrwxrwxrwx. 1 root root 17 16 feb 07.53 runlevel3.target -> multi-user.target drwxr-xr-x. 2 root root 4096 16 feb 07.53 runlevel3.target.wants lrwxrwxrwx. 1 root root 17 16 feb 07.53 runlevel4.target -> multi-user.target drwxr-xr-x. 2 root root 4096 16 feb 07.53 runlevel4.target.wants lrwxrwxrwx. 1 root root 16 16 feb 07.53 runlevel5.target -> graphical.target drwxr-xr-x. 2 root root 4096 16 feb 07.53 runlevel5.target.wants lrwxrwxrwx. 1 root root 13 16 feb 07.53 runlevel6.target -> reboot.target -rw-r--r--. 1 root root 687 9 feb 22.52 systemd-update-utmp-runlevel.service -rw-r--r--. 1 root root 536 9 feb 22.52 var-run.mount
[perseo@Perseo system]$ ls -al /lib/systemd/system/ | grep "default" lrwxrwxrwx. 1 root root 16 16 feb 07.53 default.target -> graphical.target drwxr-xr-x. 2 root root 4096 9 feb 22.52 default.target.wants
potete dirmi come posso modificare il modo di caricamento di fedora Grazie dell'aiuto




Già spiegato nell'altro post