Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Cannot boot my system after last upgrade > /etc/config/agetty-tty1 no such file  (Read 798 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Cannot boot my system after last upgrade > /etc/config/agetty-tty1 no such file

Hello, I am writing from a Linux Mint USB boot because I upgrade the system and I cannot boot my Artixlinux. I dont know if anyone else is expecting the same issue.

I cannot get a tty console so I cannot do anything.

The error is:

Code: [Select]
/etc/config/agetty-tty1 no such file or directory

This is my /etc/s6/sv directory
Code: [Select]
/media/mint/99e9c43d-8c51-4608-9179-ce211ac2696d/etc/s6/sv$ ls -lah
total 252K
drwxr-xr-x 63 root root 4.0K Apr  8 09:52 .
drwxr-xr-x 11 root root 4.0K Apr  8 09:52 ..
drwxr-xr-x  2 root root 4.0K Jan 28 21:33 NetworkManager-log
drwxr-xr-x  3 root root 4.0K Jan 28 21:33 NetworkManager-srv
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 agetty-serial
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 agetty-tty1
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 agetty-tty2
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 agetty-tty3
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 agetty-tty4
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 agetty-tty5
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 agetty-tty6
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 binfmt
drwxr-xr-x  2 root root 4.0K Jan 28 21:33 bluetoothd-log
drwxr-xr-x  3 root root 4.0K Jan 28 21:33 bluetoothd-srv
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 boot
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 cleanup
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 console-setup
drwxr-xr-x  2 root root 4.0K Sep 20  2021 cronie
drwxr-xr-x  2 root root 4.0K Sep 20  2021 dbus-log
drwxr-xr-x  2 root root 4.0K Sep 20  2021 dbus-srv
drwxr-xr-x  2 root root 4.0K Apr  8 09:52 dmesg-log
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 dmesg-srv
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 getty
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 hostname
drwxr-xr-x  2 root root 4.0K Apr  8 09:52 hwclock
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 kmod-static-nodes
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 locale
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 logind
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 misc
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 modules
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 mount
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 mount-cgroups
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 mount-devfs
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 mount-net
drwxr-xr-x  2 root root 4.0K Apr  8 09:52 mount-procfs
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 mount-sysfs
drwxr-xr-x  2 root root 4.0K Apr  8 09:52 mount-tmpfs
drwxr-xr-x  2 root root 4.0K Apr  8 09:52 net-lo
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 network-detection
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 random-seed
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 remount-root
drwxr-xr-x  2 root root 4.0K Jan 28 21:33 seatd-log
drwxr-xr-x  2 root root 4.0K Jan 28 21:33 seatd-srv
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 setup
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 swap
drwxr-xr-x  2 root root 4.0K Sep 20  2021 syncthing-log
drwxr-xr-x  2 root root 4.0K Sep 20  2021 syncthing-srv
drwxr-xr-x  2 root root 4.0K Apr  8 09:52 sysctl
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 sysusers
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 tmpfiles-dev
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 tmpfiles-setup
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 tty1
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 tty2
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 tty3
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 tty4
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 tty5
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 tty6
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 ttyS
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 udev
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 udevadm
drwxr-xr-x  2 root root 4.0K Apr  8 09:52 udevd-log
drwxr-xr-x  3 root root 4.0K Apr  8 09:52 udevd-srv
drwxr-xr-x  3 root root 4.0K Jan 28 21:33 ufw

This is my compiled database:
Code: [Select]
mint@mint:/media/mint/99e9c43d-8c51-4608-9179-ce211ac2696d$ ls -lah etc/s6/rc/
total 20K
drwxr-xr-x  5 root root 4.0K Apr  8 09:53 .
drwxr-xr-x 11 root root 4.0K Apr  8 09:52 ..
lrwxrwxrwx  1 root root   30 Feb  7 19:16 compiled -> /etc/s6/rc/compiled-1644261385
drwxr-xr-x  3 root root 4.0K Feb  7 19:16 compiled-1643706007
drwxr-xr-x  3 root root 4.0K Feb  7 19:16 compiled-1644261385
drwxr-xr-x  3 root root 4.0K Apr  8 09:53 compiled-1649411585



I see the upgrade changed the name of configurations but I dont know what can I do from my USB live to get back my system. Any help will be appreciate.
Artix Linux Colombia

Re: Cannot boot my system after last upgrade > /etc/config/agetty-tty1 no such file

Reply #1
It seems my database hasnt been compiled for a while but I dont know if its safe to remove all the database, if the system is capable to recreate from boot. I honestly dont know what to do in this case. I guess the only way is to write an Artix ISO to a USB and try to fix from there.
Artix Linux Colombia

Re: Cannot boot my system after last upgrade > /etc/config/agetty-tty1 no such file

Reply #2
I made a symbolic link from tty1.conf to agetty-tty1.conf and I now can boot. Some progress.

ls -lah /etc/s6/config/
total 96K
drwxr-xr-x  2 root root 4.0K Apr  8 12:30 .
drwxr-xr-x 11 root root 4.0K Apr  8 11:52 ..
lrwxrwxrwx  1 root root    9 Apr  8 12:30 agetty-tty1.conf -> tty1.conf

Now when I execute the command  s6-db-reload  I got this error:

s6-rc-compile: fatal: in /etc/s6/adminsv: identifier s6-rc-user starts with reserved prefix
Error compiling database. Trying the system fallback paths!
Please double check the /etc/s6/adminsv directories.

I am going to check other threads, If I am not wrong I saw something in other thread. I will look for.

Best regards.
Artix Linux Colombia

Re: Cannot boot my system after last upgrade > /etc/config/agetty-tty1 no such file

Reply #3
Well, I could finally solve the issue. The problem was because I didn't have the s6 database updated, I didn't realise because I didn't have these kind of issues with s6 until know. The reason why the database does not upgrade are explained here:

https://forum.artixlinux.org/index.php/topic,3067.msg25043.html#msg25043

So, to solve the issue I just followed these steps:

1. Create a symbolic link from tty1.conf to agetty-tty1.conf
Code: [Select]
cd /etc/s6/config
ln -s tty1.conf agetty-tty1.conf

2. Check if the symbolic link is ok:

Code: [Select]
ls -lah /etc/s6/config/
total 96K
drwxr-xr-x  2 root root 4.0K Apr  8 12:30 .
drwxr-xr-x 11 root root 4.0K Apr  8 11:52 ..
lrwxrwxrwx  1 root root    9 Apr  8 12:30 agetty-tty1.conf -> tty1.conf

3. Boot the system, I ignore the other messages, I just needed a tty to boot.
4. Change the name of "s6-rc-user" and "s6-rc-user" to "local-rc-user" and "local-s6-rc-user". And change all the references to those files.
5. Run the command "s6-reload-db"

Now, everything is working OK.

Artix Linux Colombia

Re: Cannot boot my system after last upgrade > /etc/config/agetty-tty1 no such file

Reply #4
Sorry about the inconvenience there. As an aside, tty7 is a fallback getty that is always available for you to use.

Re: Cannot boot my system after last upgrade > /etc/config/agetty-tty1 no such file

Reply #5
Sorry about the inconvenience there. As an aside, tty7 is a fallback getty that is always available for you to use.

I didn't know that. Glad to know that extra information :). Thank you and best regards.
Artix Linux Colombia

Re: Cannot boot my system after last upgrade > /etc/config/agetty-tty1 no such file

Reply #6
Just had this issue too after updating and rebooting, only now it complains about s6rc-fdholder, and I assume it'll complain about s6rc-oneshot-runner. They're files in my /etc/s6/adminsv. I most likely accidentally created them wbile running a script though, to move from bundles to the new method.