Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1168572 > unrolled thread

Bug#1052116: Removing the udev init script breaks sysv bootup.

Started bypthfdr@mailbox.org
First post2023-09-17 16:00 +0200
Last post2023-09-20 10:00 +0200
Articles 8 — 4 participants

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#1052116: Removing the udev init script breaks sysv bootup. pthfdr@mailbox.org - 2023-09-17 16:00 +0200
    Bug#1052116: initscripts: /etc/rcX.d symlinks not created Kevin Ruml <k_ruml@yahoo.com> - 2023-09-19 04:10 +0200
      Bug#1052116: initscripts: /etc/rcX.d symlinks not created Mark Hindley <mark@hindley.org.uk> - 2023-09-19 08:40 +0200
        Bug#1052116: initscripts: /etc/rcX.d symlinks not created Mark Hindley <mark@hindley.org.uk> - 2023-09-19 09:30 +0200
        Bug#1052116: initscripts: /etc/rcX.d symlinks not created Lorenzo <plorenzo@disroot.org> - 2023-09-19 09:50 +0200
    Bug#1052116: initscripts: /etc/rcX.d symlinks not created Mark Hindley <mark@hindley.org.uk> - 2023-09-19 09:50 +0200
      Bug#1052116: initscripts: /etc/rcX.d symlinks not created Mark Hindley <mark@hindley.org.uk> - 2023-09-19 19:00 +0200
    Bug#1052116: initscripts: /etc/rcX.d symlinks not created Mark Hindley <mark@hindley.org.uk> - 2023-09-20 10:00 +0200

#1168572 — Bug#1052116: Removing the udev init script breaks sysv bootup.

Frompthfdr@mailbox.org
Date2023-09-17 16:00 +0200
SubjectBug#1052116: Removing the udev init script breaks sysv bootup.
Message-ID<Hf0tz-9Bxz-1@gated-at.bofh.it>
Package: udev
Version: 254.3-1

The 254.3-1 update of udev removed the init script "/etc/init.d/udev".
On systems with "sysvinit-core" as init, removing the script causes udev 
no longer starting on boot, which makes the system inoperable since 
important device drivers (like GPUs and keyboards/mice) are no longer 
loaded.

[toc] | [next] | [standalone]


#1168766 — Bug#1052116: initscripts: /etc/rcX.d symlinks not created

FromKevin Ruml <k_ruml@yahoo.com>
Date2023-09-19 04:10 +0200
SubjectBug#1052116: initscripts: /etc/rcX.d symlinks not created
Message-ID<Hfylz-9WsR-1@gated-at.bofh.it>
In reply to#1168572
Package: initscripts
Version: 3.08-1
Followup-For: Bug #1052116
X-Debbugs-Cc: k_ruml@yahoo.com

Dear Maintainer,

   * What led up to the situation?
   Updating udev and sysv-rc package groups
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   Updating caused subsequent reboots to fail to make it to GUI login
   * What was the outcome of this action?
   System was not properly booted into the OS
   * What outcome did you expect instead?
   Reboot and taken to GUI login screen

I initially updated udev to 254.3-1 and didn't get a running system.  I downgraded udev back to 254.1-3 and the system functioned properly.  That was on Saturday so would have been before #1042082 was fixed.  Today I updated both udev (to 254.3-1) and sysv-rc (to 3.08-1) package groups and was again left with a broken system.  Downgrading both sets of packages returned the system to a functioning state.  I found that by looking at differences between updating and downgrading that after updating, the /etc/rcX.d symlinks for udev were not being created.  It seems the update-rc.d command isn't being run with the init script now being in initscripts instead of udev package.


Performing actions...
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 398542 files and directories currently installed.)
Preparing to unpack .../sysvinit-utils_3.08-1_amd64.deb ...
Unpacking sysvinit-utils (3.08-1) over (3.07-1) ...
Setting up sysvinit-utils (3.08-1) ...
(Reading database ... 398542 files and directories currently installed.)
Preparing to unpack .../0-udev_254.3-1_amd64.deb ...
Unpacking udev (254.3-1) over (254.1-3) ...
Preparing to unpack .../1-libudev1_254.3-1_amd64.deb ...
De-configuring libudev1:i386 (254.1-3), to allow configuration of libudev1:amd64 (254.3-1) ...
Unpacking libudev1:amd64 (254.3-1) over (254.1-3) ...
Preparing to unpack .../2-libudev1_254.3-1_i386.deb ...
Unpacking libudev1:i386 (254.3-1) over (254.1-3) ...
Preparing to unpack .../3-sysv-rc_3.08-1_all.deb ...
Unpacking sysv-rc (3.08-1) over (3.07-1) ...
Preparing to unpack .../4-initscripts_3.08-1_all.deb ...
Unpacking initscripts (3.08-1) over (3.07-1) ...
Preparing to unpack .../5-sysvinit-core_3.08-1_amd64.deb ...
Unpacking sysvinit-core (3.08-1) over (3.07-1) ...
Setting up libudev1:amd64 (254.3-1) ...
Setting up libudev1:i386 (254.3-1) ...
Setting up sysv-rc (3.08-1) ...
Setting up initscripts (3.08-1) ...
Setting up udev (254.3-1) ...
Setting up sysvinit-core (3.08-1) ...
sysvinit: restarting... done.
Processing triggers for libc-bin (2.37-10) ...
Processing triggers for man-db (2.11.2-3) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.5.0-1-amd64

# updatedb
# locate udev | less

/etc/udev
/etc/init.d/udev
/etc/systemd/system/udev.service
/etc/udev/hwdb.bin
/etc/udev/hwdb.d
/etc/udev/iocost.conf
/etc/udev/rules.d
/etc/udev/udev.conf
/etc/udev/rules.d/70-persistent-net.rules
/etc/udev/rules.d/81-canonij_prn.rules


# cd /var/cache/apt/archives/
# dpkg -i libudev1_254.1-3_amd64.deb libudev1_254.1-3_i386.deb udev_254.1-3_amd64.deb sysvinit-core_3.07-1_amd64.deb sysvinit-utils_3.07-1_amd64.deb sysv-rc_3.07-1_all.deb initscripts_3.07-1_all.deb 
dpkg: warning: downgrading libudev1:amd64 from 254.3-1 to 254.1-3
(Reading database ... 398543 files and directories currently installed.)
Preparing to unpack libudev1_254.1-3_amd64.deb ...
De-configuring libudev1:i386 (254.3-1), to allow configuration of libudev1:amd64 (254.1-3) ...
Unpacking libudev1:amd64 (254.1-3) over (254.3-1) ...
dpkg: warning: downgrading libudev1:i386 from 254.3-1 to 254.1-3
Preparing to unpack libudev1_254.1-3_i386.deb ...
Unpacking libudev1:i386 (254.1-3) over (254.3-1) ...
dpkg: warning: downgrading udev from 254.3-1 to 254.1-3
Preparing to unpack udev_254.1-3_amd64.deb ...
Unpacking udev (254.1-3) over (254.3-1) ...
Replaced by files in installed package initscripts (3.08-1) ...
dpkg: warning: downgrading sysvinit-core from 3.08-1 to 3.07-1
Preparing to unpack sysvinit-core_3.07-1_amd64.deb ...
Unpacking sysvinit-core (3.07-1) over (3.08-1) ...
dpkg: warning: downgrading sysvinit-utils from 3.08-1 to 3.07-1
Preparing to unpack sysvinit-utils_3.07-1_amd64.deb ...
Unpacking sysvinit-utils (3.07-1) over (3.08-1) ...
dpkg: warning: downgrading sysv-rc from 3.08-1 to 3.07-1
Preparing to unpack sysv-rc_3.07-1_all.deb ...
Unpacking sysv-rc (3.07-1) over (3.08-1) ...
dpkg: warning: downgrading initscripts from 3.08-1 to 3.07-1
Preparing to unpack initscripts_3.07-1_all.deb ...
Unpacking initscripts (3.07-1) over (3.08-1) ...
Setting up libudev1:amd64 (254.1-3) ...
Setting up libudev1:i386 (254.1-3) ...
Setting up udev (254.1-3) ...
Setting up sysvinit-utils (3.07-1) ...
Setting up sysv-rc (3.07-1) ...
Setting up initscripts (3.07-1) ...
Setting up sysvinit-core (3.07-1) ...
sysvinit: restarting... done.
Processing triggers for libc-bin (2.37-10) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.5.0-1-amd64
Processing triggers for man-db (2.11.2-3) ...


# updatedb
# locate udev | less

/etc/udev
/etc/init.d/udev
/etc/rc0.d/K01udev
/etc/rc6.d/K01udev
/etc/rcS.d/S02udev
/etc/systemd/system/udev.service
/etc/udev/hwdb.bin
/etc/udev/hwdb.d
/etc/udev/iocost.conf
/etc/udev/rules.d
/etc/udev/udev.conf
/etc/udev/rules.d/70-persistent-net.rules
/etc/udev/rules.d/81-canonij_prn.rules

Update again:

# update-rc.d udev defaults
# updatedb
# locate udev | less

/etc/udev
/etc/init.d/udev
/etc/rc0.d/K01udev
/etc/rc6.d/K01udev
/etc/rcS.d/S02udev
/etc/systemd/system/udev.service
/etc/udev/hwdb.bin
/etc/udev/hwdb.d
/etc/udev/iocost.conf
/etc/udev/rules.d
/etc/udev/udev.conf
/etc/udev/rules.d/70-persistent-net.rules
/etc/udev/rules.d/81-canonij_prn.rules

update-initramfs -u


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-1-amd64 (SMP w/6 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages initscripts depends on:
ii  sysv-rc         3.08-1
ii  sysvinit-utils  3.08-1

Versions of packages initscripts recommends:
ii  e2fsprogs  1.47.0-2+b1
ii  psmisc     23.6-1

initscripts suggests no packages.

-- no debconf information

[toc] | [prev] | [next] | [standalone]


#1168783 — Bug#1052116: initscripts: /etc/rcX.d symlinks not created

FromMark Hindley <mark@hindley.org.uk>
Date2023-09-19 08:40 +0200
SubjectBug#1052116: initscripts: /etc/rcX.d symlinks not created
Message-ID<HfCyR-9Z2c-3@gated-at.bofh.it>
In reply to#1168766
Kevin,

Many thanks for reporting this.

I think this is an ordering issue.

On Mon, Sep 18, 2023 at 09:07:59PM -0500, Kevin Ruml wrote:
[..]

> Setting up libudev1:i386 (254.3-1) ...
> Setting up sysv-rc (3.08-1) ...
> Setting up initscripts (3.08-1) ...
> Setting up udev (254.3-1) ...

The udev postinst, which removes the update-rc.d symlinks is  run after the
initscripts postinst which has created them.

Hmmm...

Mark

[toc] | [prev] | [next] | [standalone]


#1168788 — Bug#1052116: initscripts: /etc/rcX.d symlinks not created

FromMark Hindley <mark@hindley.org.uk>
Date2023-09-19 09:30 +0200
SubjectBug#1052116: initscripts: /etc/rcX.d symlinks not created
Message-ID<HfDlf-9ZxH-1@gated-at.bofh.it>
In reply to#1168783
On Tue, Sep 19, 2023 at 07:29:45AM +0100, Mark Hindley wrote:
> > Setting up initscripts (3.08-1) ...
> > Setting up udev (254.3-1) ...
> 
> The udev postinst, which removes the update-rc.d symlinks is  run after the
> initscripts postinst which has created them.

Just so I can be sure that there isn't a bug in the initscripts postinst, having
upgraded to initscripts 3.08-1, can you run

 dpkg-reconfigure initscripts

and verify that the symlinks are recreated?

Thanks

Mark

[toc] | [prev] | [next] | [standalone]


#1168792 — Bug#1052116: initscripts: /etc/rcX.d symlinks not created

FromLorenzo <plorenzo@disroot.org>
Date2023-09-19 09:50 +0200
SubjectBug#1052116: initscripts: /etc/rcX.d symlinks not created
Message-ID<HfDEB-9ZE1-3@gated-at.bofh.it>
In reply to#1168783
Hi,

On Tue, 19 Sep 2023 07:29:45 +0100
Mark Hindley <mark@hindley.org.uk> wrote:

> Kevin,
> 
> Many thanks for reporting this.
> 
> I think this is an ordering issue.
> 
> On Mon, Sep 18, 2023 at 09:07:59PM -0500, Kevin Ruml wrote:
> [..]
> 
> > Setting up libudev1:i386 (254.3-1) ...
> > Setting up sysv-rc (3.08-1) ...
> > Setting up initscripts (3.08-1) ...
> > Setting up udev (254.3-1) ...
> 
> The udev postinst, which removes the update-rc.d symlinks is  run
> after the initscripts postinst which has created them.

One solution could be that udev does the cleanup only if initscripts
is not installed in the system; otherwise assume a take over from
initscripts package.
The removal bits in udev package could be guarded by something like

If ! dpkg -s initscripts >/dev/null ; then
	#remove udev 's sysv bits
fi

Lorenzo

> 
> Hmmm...
> 
> Mark
> 

[toc] | [prev] | [next] | [standalone]


#1168791 — Bug#1052116: initscripts: /etc/rcX.d symlinks not created

FromMark Hindley <mark@hindley.org.uk>
Date2023-09-19 09:50 +0200
SubjectBug#1052116: initscripts: /etc/rcX.d symlinks not created
Message-ID<HfDEB-9ZE1-1@gated-at.bofh.it>
In reply to#1168572
On Tue, Sep 19, 2023 at 09:33:29AM +0200, Lorenzo wrote:
> One solution could be that udev does the cleanup only if initscripts
> is not installed in the system; otherwise assume a take over from
> initscripts package.
> The removal bits in udev package could be guarded by something like
> 
> If ! dpkg -s initscripts >/dev/null ; then
> 	#remove udev 's sysv bits
> fi

Yes. I think the real issue is the udev.postinst using update-rc.d -f remove
udev. Without the -f option, I think the symlinks would be left intact.

Mark

[toc] | [prev] | [next] | [standalone]


#1168861 — Bug#1052116: initscripts: /etc/rcX.d symlinks not created

FromMark Hindley <mark@hindley.org.uk>
Date2023-09-19 19:00 +0200
SubjectBug#1052116: initscripts: /etc/rcX.d symlinks not created
Message-ID<HfMeR-a5ey-7@gated-at.bofh.it>
In reply to#1168791
On Tue, Sep 19, 2023 at 08:36:05AM +0100, Mark Hindley wrote:
> Yes. I think the real issue is the udev.postinst using update-rc.d -f remove
> udev. Without the -f option, I think the symlinks would be left intact.

The fix for this has been queued in src:systemd[1].

Mark

[1]  	 https://salsa.debian.org/systemd-team/systemd/-/commit/12e2c67612f958148f0a4ca165cfb9ca1ed9d3c3

[toc] | [prev] | [next] | [standalone]


#1168938 — Bug#1052116: initscripts: /etc/rcX.d symlinks not created

FromMark Hindley <mark@hindley.org.uk>
Date2023-09-20 10:00 +0200
SubjectBug#1052116: initscripts: /etc/rcX.d symlinks not created
Message-ID<Hg0hP-adPG-7@gated-at.bofh.it>
In reply to#1168572
Kevin,

On Wed, Sep 20, 2023 at 02:07:48AM +0000, Kevin Ruml wrote:
>    I know you sent subsequent messages about a fix, but since you asked me
>    to test this and it was easy enough for me to do it, I did.
>    Downgrading then upgrading again left the system without the symlinks.
>    Running "dpkg-reconfigure initscripts" did generate the symlinks.

Thanks, that is really useful confirmation that we aren't missing something
else.

Much appreciated.

Mark

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web