Package: chkboot
Version: 1.3-8.2
Severity: important

Hi,

After removing the last HDD from my system, chkboot started to complain 
with:

===================================================================
CHKBOOT ALERT!

Changes have been detected in your boot files!
The following list of files contained in have changed since the last time this 
script was run (filename sha512):
cat: /var/lib/chkboot/boot-differences: Отказан достъп

This notification will continue to appear until you either run "chkboot" again 
as root or restart your computer
===================================================================

The 'boot-differences' file is only readable by root and the root group, 
causing the message 'Отказан достъп' (Access denied), but it doesn't contain 
anything anyway:

===================================================================
root@pc1:/var/lib/chkboot# cat boot-differences
List of changed files on 23.10.2024 (ср) 12:38:01 EEST:

root@pc1:/var/lib/chkboot#
===================================================================

Running chkboot by hand leads to:

===================================================================
$ LANG=C sudo chkboot
diff: /var/lib/chkboot/DISKHEAD-last: No such file or directory
diff: /var/lib/chkboot/DISKHEAD-20241023-124645: No such file or directory
===================================================================

Running chkboot with 'bash -x' reveals that it tries to dd the first sector of 
/dev/sda into DISKHEAD-$stamp. There is no /dev/sda on my system anymore so 
that fails. Strangely, there is no error message displayed. Later, the 
DISKHEAD-latest symlink is pointed to the non-existing DISKHEAD-$stamp, leading 
to the error messages above.


Not sure what the right solution is. Skip boot sector checking if there is no 
/dev/sda? Checksum all EFI partitions?


-- Damyan


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

Kernel: Linux 6.11.4-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages chkboot depends on:
ii  init-system-helpers  1.67

chkboot recommends no packages.

Versions of packages chkboot suggests:
ii  x11-utils  7.7+7
ii  zenity     4.0.2-1

-- debconf-show failed

Reply via email to