:: [devuan-dev] bug#932: bug#932: init…
Startseite
Nachricht löschen
Nachricht beantworten
Autor: tito
Datum:  
To: devuan-dev
CC: Walter Alejandro Iglesias, 932
Betreff: [devuan-dev] bug#932: bug#932: init scripts fail when /var is in a separate partition
On Fri, 9 Jan 2026 18:32:57 +0100
Walter Alejandro Iglesias <wai@???> wrote:

> On Fri, Jan 09, 2026 at 01:01:18PM +0100, Walter Alejandro Iglesias wrote:
> > Mark and Thorsten,
> >
> > On Fri, Jan 09, 2026 at 12:04:38PM +0100, Walter Alejandro Iglesias wrote:
> > > Consider my solution, please. It allows restoring that check, this time
> >
> > Now I understood how logsave(8) works. I was telling nonsense. Forget
> > about my diff and sorry for the noise!
>
> I'd like to add that, even after removing the [ -e "${FSCK_LOGFILE}" ]
> check from the conditional in logsave_best_effort(), the logs from
> checkfs.sh *still are not saved* in /var/log/fsck/checkfs. The only
> solution I can think of is to save them first in a temporary file, as in
> the example at bottom.
>
> Another question I couldn't get rid of no matter how much I searched the
> web is whether there is a way to configure initramfs to fsck all
> partitions and not just / and /usr.


/etc/fstab ?

   The sixth field (fs_passno).
       This field is used by fsck(8) to determine the order in which filesystem checks are done at boot time. The root filesystem should be specified with a fs_passno of 1. Other filesystems should have a fs_passno of 2. Filesystems
       within a drive will be checked sequentially, but filesystems on different drives will be checked at the same time to utilize parallelism available in the hardware. Defaults to zero (don’t check the filesystem) if not present.



>
> --- /lib/init/mount-functions.sh.orig    2026-01-09 17:24:51.587997366 +0100
> +++ /lib/init/mount-functions.sh    2026-01-09 17:48:26.227997219 +0100
> @@ -728,7 +728,7 @@ is_fastboot_active() {
>  # for #901289.
>  logsave_best_effort() {
>      if [ -x /sbin/logsave ]; then
> -        logsave -s "${FSCK_LOGFILE}" "$@"
> +        logsave -s /run/checkfs.log "$@"
>      else
>          log_failure_msg "Cannot persist the following output on disc"
>          "$@"
> --- /etc/init.d/mountall.sh.orig    2026-01-09 16:36:51.391997720 +0100
> +++ /etc/init.d/mountall.sh    2026-01-09 17:47:21.511998206 +0100
> @@ -53,6 +53,10 @@ do_start() {
>      # tmpfs, we have to make /var/log/fsck appear here. (see #524007)
>      mkdir -p /var/log/fsck

>
> +    if [ -e /run/checkfs.log ]; then
> +        cat /run/checkfs.log > /var/log/fsck/checkfs
> +    fi
> +
>      # We might have mounted something over /run; see if
>      # /run/initctl is present.  Look for
>      # /usr/share/sysvinit/update-rc.d to verify that sysvinit (and
> _______________________________________________
> devuan-dev internal mailing list
> devuan-dev@???
> Manage your subscription: https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/devuan-dev
> Archive: https://lists.dyne.org/lurker/list/devuan-dev.en.html