[gentoo-user] hostname service on lxc

2021-01-09 Thread Alarig Le Lay
Hi,

OpenRC doesn’t take the hostname service service on LXC even if the
symlink exists:

as112 ~ # rc-status boot | grep hostname
as112 ~ # file /etc/runlevels/boot/hostname
/etc/runlevels/boot/hostname: symbolic link to /etc/init.d/hostname

On a bare-metal box, the service is started:

edge08-clouvider ~ # rc-status boot | grep hostname
 hostname  [  
started  ]
edge08-clouvider ~ # file /etc/runlevels/boot/hostname
/etc/runlevels/boot/hostname: symbolic link to /etc/init.d/hostname
edge08-clouvider ~ # 

If I try to use `rc-update`, as the symlink exists, it fails, but if I
delete the service and re-add it, the result is the same:

as112 ~ # rc-update add hostname boot
 * rc-update: hostname already installed in runlevel `boot'; skipping
as112 ~ # rc-update del hostname boot
 * service hostname removed from runlevel boot
as112 ~ # rc-update add hostname boot
 * service hostname added to runlevel boot
as112 ~ # rc-status boot | grep hostname
as112 ~ #

So, I’m a bit confused here. If someone has an idea…

Thanks!
-- 
Alarig



[gentoo-user] Logfiles with dates in their names

2021-01-09 Thread Dr Rainer Woitok
Greetings,

after having installed  "syslog-ng"  I configured it  to add the current
date to each logfile name  and thus to start  every day  with a new log-
file.   That way logfile cleaning is just a matter of deleting old files
rather than  perpetually renaming them  and thus collecting  zillions of
copies of the same logfile under different names in my daily backups.

Up to now  trying the same  with the  OpenRC  logfile  "/var/log/rc.log"
failed however: I tried using a named pipe instead of "/var/log/rc.log",
but it didn't work out.   The system stalled  in the middle of both, the
shutdown and boot processes.

   $ grep OpenRC /etc/syslog-ng/syslog-ng.conf /etc/rc.conf
   /etc/syslog-ng/syslog-ng.conf:source orc { pipe("/var/tmp/OpenRC"); };
   /etc/rc.conf:rc_log_path="/var/tmp/OpenRC"
   $ ls -l /var/tmp/OpenRC
   prw--- 1 root root 0 2021-01-08 13:44 /var/tmp/OpenRC
   $

What did I miss?

Sincerely,
  Rainer



Re: [gentoo-user] hostname service on lxc

2021-01-09 Thread Nils Freydank
Hi Alarig,

Am Samstag, den 09.01.2021 um 10:52:12 Uhr +0100 schrieb Alarig Le Lay 
:
> Hi,
> 
> OpenRC doesn’t take the hostname service service on LXC even if the
> symlink exists:

please take a look into /etc/rc.conf (key word rc_sys) and into the initscript
/etc/init.d/hostname inside the depend phase:

"keyword -docker -lxc -prefix -systemd-nspawn"

Looks to me as openrc doesn't start the hostname script in certain environments.
Is this even possible and has no weird side effects?

For testing you could drop the "-lxc" from that line, e.g. by commenting out
the original one and copying it (to have a backup..). If it works as expected
you might file a bug to ask for removal of the lxc-keyword here. Maybe there
is already one, didn't check.

Hope that helps along,
Nils



[gentoo-user] Weird log messages

2021-01-09 Thread Peter Humphrey
Hello list,

I'm still working on reviving my old Thinkpad T61. I have it booting without 
X, but syslog-ng is repeating these lines every second or so. Does anyone 
recognise them?

Jan  9 15:24:56 tpad kernel: *** thread awakened
Jan  9 15:24:56 tpad kernel: Command TEST_UNIT_READY (6 bytes)
Jan  9 15:24:56 tpad kernel: bytes: 00 00 00 00 00 00
Jan  9 15:24:56 tpad kernel: Bulk Command S 0x43425355 T 0x8d L 0 F 0 Trg 0 
LUN 0 CL 6
Jan  9 15:24:56 tpad kernel: xfer 31 bytes
Jan  9 15:24:56 tpad kernel: Status code 0; transferred 31/31

The same also happens if no network devices have been started.

-- 
Regards,
Peter.






Re: [gentoo-user] Weird log messages

2021-01-09 Thread Peter Humphrey
On Saturday, 9 January 2021 15:33:12 GMT Peter Humphrey wrote:
> Hello list,
> 
> I'm still working on reviving my old Thinkpad T61. I have it booting without
> X, but syslog-ng is repeating these lines every second or so. Does anyone
> recognise them?
> 
> Jan  9 15:24:56 tpad kernel: *** thread awakened
> Jan  9 15:24:56 tpad kernel: Command TEST_UNIT_READY (6 bytes)
> Jan  9 15:24:56 tpad kernel: bytes: 00 00 00 00 00 00
> Jan  9 15:24:56 tpad kernel: Bulk Command S 0x43425355 T 0x8d L 0 F 0 Trg 0
> LUN 0 CL 6
> Jan  9 15:24:56 tpad kernel: xfer 31 bytes
> Jan  9 15:24:56 tpad kernel: Status code 0; transferred 31/31
> 
> The same also happens if no network devices have been started.

I didn't quote all of it. This is more complete:

Jan  9 15:36:31 tpad kernel: *** thread awakened
Jan  9 15:36:31 tpad kernel: Command TEST_UNIT_READY (6 bytes)
Jan  9 15:36:31 tpad kernel: bytes: 00 00 00 00 00 00
Jan  9 15:36:31 tpad kernel: Bulk Command S 0x43425355 T 0x8c L 0 F 0 Trg 0 
LUN 0 CL 6
Jan  9 15:36:31 tpad kernel: xfer 31 bytes
Jan  9 15:36:31 tpad kernel: Status code 0; transferred 31/31
Jan  9 15:36:31 tpad kernel: -- transfer complete
Jan  9 15:36:31 tpad kernel: Bulk command transfer result=0
Jan  9 15:36:31 tpad kernel: Attempting to get CSW...
Jan  9 15:36:31 tpad kernel: xfer 13 bytes
Jan  9 15:36:31 tpad kernel: Status code 0; transferred 13/13
Jan  9 15:36:31 tpad kernel: -- transfer complete
Jan  9 15:36:31 tpad kernel: Bulk status result = 0
Jan  9 15:36:31 tpad kernel: Bulk Status S 0x53425355 T 0x8c R 0 Stat 0x0
Jan  9 15:36:31 tpad kernel: scsi cmd done, result=0x0
Jan  9 15:36:31 tpad kernel: *** thread sleeping


-- 
Regards,
Peter.






Re: [gentoo-user] hostname service on lxc

2021-01-09 Thread Alarig Le Lay
Hi Nils,

rc_sys from /etc/rc.conf is empty, but after removing -lxc from
/etc/init.d/hostname the service is well started. Thanks!

So, for the record:
as112 ~ # grep rc_sys /etc/rc.conf
#rc_sys=""
as112 ~ # grep keyword /etc/init.d/hostname
keyword -docker -lxc -prefix -systemd-nspawn
as112 ~ # vim /etc/init.d/hostname
as112 ~ # rc-status boot | grep hostname
 hostname  [  started  ]
as112 ~ # grep keyword /etc/init.d/hostname
keyword -docker -prefix -systemd-nspawn
as112 ~ #

Cheers,
-- 
Alarig



Re: [gentoo-user] Weird log messages

2021-01-09 Thread netfab


Hi,

Le 09/01/21 à 16:33, Peter Humphrey a tapoté :
> I'm still working on reviving my old Thinkpad T61. I have it booting
> without X, but syslog-ng is repeating these lines every second or so.
> Does anyone recognise them?
> 

Check if your kernel is built with (if so, disable it) :

> │ CONFIG_USB_STORAGE_DEBUG:
> │
> │ Say Y here in order to have the USB Mass Storage code generate
> │ verbose debugging messages.
> │
> │ Symbol: USB_STORAGE_DEBUG [=n]
> │ Type  : bool
> │ Prompt: USB Mass Storage verbose debug
> │   Location:
> │ -> Device Drivers
> │   -> USB support (USB_SUPPORT [=y])
> │ -> USB Mass Storage support (USB_STORAGE [=y])
> │   Defined at drivers/usb/storage/Kconfig:26
> │   Depends on: USB_SUPPORT [=y] && USB [=y] && USB_STORAGE [=y]





Re: [gentoo-user] Screen/driver/xserver freezing after suspension

2021-01-09 Thread Igor Mróz
> After execute a remote reboot, how long did you wait before to force the 
> machine ?

I didn't count, but it was probably around 5 to 10 minutes.


> Do you have systemd ?  Did you analyse journalctl  (you just said 
> dmesg/logs) ?

Nope - I use OpenRC. But I can't find anything weird in logs when crash occurs 
or after that.

Igor


pgpibORwMnf3a.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Screen/driver/xserver freezing after suspension

2021-01-09 Thread aol
Hi!

What do you use for suspend? I had also problem with suspend I created
the bugs https://bugs.gentoo.org/763129. You can try do it like in the
comments. If it does not help, please write ;)

On 21/01/09 09:30PM, Igor Mróz wrote:
> > After execute a remote reboot, how long did you wait before to force the
> > machine ?
>
> I didn't count, but it was probably around 5 to 10 minutes.
>
>
> > Do you have systemd ?  Did you analyse journalctl  (you just said
> > dmesg/logs) ?
>
> Nope - I use OpenRC. But I can't find anything weird in logs when crash 
> occurs or after that.
>
> Igor



--
Regards,
Marcin Woźniak
https://yorune.pl