Welcome
Welcome to refracta

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

An experiment

Refracta Development, Scripts, etc.

An experiment

Postby fsmithred » Fri May 13, 2011 4:21 am

I upgraded a vbox install of refracta-6.0.4/6.0.5 to wheezy and installed systemd from sid. Also installed live-config-systemd. Had to reinstall live-boot, because it got removed in the process. So did refractasnapshot, because of its dependency on live-initramfs. Installing live-boot also pulled in live-boot-initramfs-tools, the replacement for live-initramfs.

The bash snapshot tool worked to create a bootable snapshot. The installer will need some changes - there's no need for /etc/inittab with systemd, and auto-login on the console got lost with that. I think I can just remove those sections from the installer. If anyone knows how to enable console auto-login with systemd, please speak up, and you'll save me some search time.
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm

Re: An experiment

Postby meandean » Fri May 13, 2011 3:51 pm

auto login?

are you talking about for the live system?

what does systemd bring to the table?
User avatar
meandean
 
Posts: 392
Joined: Wed Mar 09, 2011 5:16 am

Re: An experiment

Postby fsmithred » Fri May 13, 2011 8:39 pm

Um, this is refracta. There is no auto-login. I forgot that you did away with that, and I'm getting confused between refracta and debian live.

Never mind on the auto-login. So, I guess doing it with systemd is just fine.

But since you asked, there are six symlinks (getty@tty{1..6}.service) in /etc/systemd/system/getty.target.wants, and they all point to /lib/systemd/system/getty@.service, which looks like this:
Code: Select all
#  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.

[Unit]
Description=Getty on %I
BindTo=dev-%i.device
After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service openvpn.service apache2.service

# If additional gettys are spawned during boot then we should make
# sure that this is synchronized before getty.target, even though
# getty.target didn't actually pull it in.
Before=getty.target

[Service]
Environment=TERM=linux
ExecStart=-/sbin/agetty %I 38400
Restart=always
RestartSec=0
UtmpIdentifier=%I
KillMode=process-group

# Unset locale for the console getty since the console has problems
# displaying some internationalized messages.
Environment=LANG= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGE= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=

# Some login implementations ignore SIGTERM, so we send SIGHUP
# instead, to ensure that login terminates cleanly.
KillSignal=SIGHUP

[Install]
Alias=getty.target.wants/getty@tty1.service getty.target.wants/getty@tty2.service getty.target.wants/getty@tty3.service getty.target.wants/getty@tty4.service getty.target.wants/getty@tty5.service getty.target.wants/getty@tty6.service
User avatar
fsmithred
 
Posts: 1987
Joined: Wed Mar 09, 2011 9:13 pm


Return to Discuss

Who is online

Users browsing this forum: No registered users and 0 guests

suspicion-preferred