Artix Linux Forum

Init systems => dinit => Topic started by: omnigenous on 26 January 2024, 07:23:18

Title: lvm2: execution failed
Post by: omnigenous on 26 January 2024, 07:23:18
I'm getting this error on every boot in tty1:

Code: [Select]
dinit: lvm2: execution failed - setting up standard input/output descriptors: No such file or directory

"/var/log/dinit/lvm2.log" is empty

Reinstalling didn't help, and I can't find anything online with same exact error.

/etc/dinit.d/lvm2:

Code: [Select]
type      = scripted
command   = /usr/bin/vgchange --sysinit -a y
logfile   = /var/log/dinit/lvm2.log
restart   = false
after     = udev-settle
Title: Re: lvm2: execution failed
Post by: omnigenous on 27 January 2024, 06:25:12
Got a response from Dinit dev: https://github.com/davmac314/dinit/discussions/282#discussioncomment-8262589

They are saying:
Quote
The likely problem is that the configured logfile directory, /var/log/dinit/, doesn't exist (yet) when the service starts.

I used the workaround:

Quote
For a workaround, add log-type = buffer and remove logfile = /var/log/dinit/lvm2.log from the service description file.

And it did got rid of an error.

Title: Re: [SOLVED] lvm2: execution failed
Post by: omnigenous on 27 January 2024, 18:30:12
Not solved, only got a workaround!
Title: Re: lvm2: execution failed
Post by: omnigenous on 28 January 2024, 06:09:33
Can moderators tell me the reason they are marking this thread "Solved" without any explanation? I'm confused :(
Title: Re: lvm2: execution failed
Post by: Hitman on 28 January 2024, 17:45:42
Can moderators tell me the reason they are marking this thread "Solved" without any explanation? I'm confused :(
i did by mistake, it seemed solved to me and people usually don't bother to mark them as such.
Title: Re: lvm2: execution failed
Post by: konimex on 09 March 2024, 06:28:47
Apologies for the *very* late reply, but here I'm assuming that you have a separate /var partition (since /var/log/dinit should be installed (part of dinit-rc pkg) from what Davin said)? Either way I'll release a new package with logs written into buffer.
Title: Re: lvm2: execution failed
Post by: omnigenous on 29 March 2024, 14:08:07
Ah, I got btrfs subvolume for /var/log. So I guess it is related. I will test once it is published!
Title: Re: lvm2: execution failed
Post by: konimex on 30 March 2024, 09:17:59
It should've been shipped since about 3 weeks ago.