Debian GNU/Linux etch amd64 環境 のセキュリティ カーネル アップグレードの様子。
update-grub コマンドは自動で実行されてるっぽい。


# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
The following packages will be upgraded:
  linux-image-2.6.18-5-amd64
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 16.9MB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://security.debian.org etch/updates/main linux-image-2.6.18-5-amd64 2.6.18.dfsg.1-13etch6 [16.9MB]
Fetched 16.9MB in 8s (1900kB/s)
Preconfiguring packages ...
(Reading database ... 57643 files and directories currently installed.)
Preparing to replace linux-image-2.6.18-5-amd64 2.6.18.dfsg.1-13etch5 (using ...
/linux-image-2.6.18-5-amd64_2.6.18.dfsg.1-13etch6_amd64.deb) ...
The directory /lib/modules/2.6.18-5-amd64 still exists. Continuing as directed.
 
Package configuration
 
 lqqqqqqqqqqqqqqqqu Configuring linux-image-2.6.18-5-amd64 tqqqqqqqqqqqqqqqqqk
 x                                                                           x
 x  The kernel version running is the same as the one being installed
 x
 x You are attempting to install a kernel version that is the same as the    a
 x version you are currently running (version 2.6.18-5-amd64). The modules   a
 x list is quite likely to have been changed, and the modules dependency     a
 x file /lib/modules/2.6.18-5-amd64/modules.dep needs to be re-built. It     a
 x can not be built correctly right now, since the module list for the       a
 x running kernel are likely to be different from the kernel installed. I    a
 x am creating a new modules.dep file, but that may not be correct. It       a
 x shall be regenerated correctly at next reboot.                            a
 x                                                                           a
 x I repeat: you have to reboot in order for the modules file to be created  a
 x correctly. Until you reboot, it may be impossible to load some modules.   a
 x Reboot as soon as this install is finished (Do not reboot right now,
 x
 x                                  <Ok>
 x                                                                           x
 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
 
Done.
Unpacking replacement linux-image-2.6.18-5-amd64 ...
Running postrm hook script /sbin/update-grub.
You shouldn't call /sbin/update-grub. Please call /usr/sbin/update-grub instead!
 
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz-2.6.18-5-amd64
Updating /boot/grub/menu.lst ... done
 
Setting up linux-image-2.6.18-5-amd64 (2.6.18.dfsg.1-13etch6) ...
 
 Hmm. The package shipped with a symbolic link /lib/modules/2.6.18-5-amd64/source
 However, I can not read the target: No such file or directory
 Therefore, I am deleting /lib/modules/2.6.18-5-amd64/source
 
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.18.dfsg.1-13etch5 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.18.dfsg.1-13etch5 was configured last, according to dpkg)
Running postinst hook script /sbin/update-grub.
You shouldn't call /sbin/update-grub. Please call /usr/sbin/update-grub instead!
 
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz-2.6.18-5-amd64
Updating /boot/grub/menu.lst ... done

その後 shutdown -r now で再起動。

Ref. Debian Security Advisory - linux-2.6 (DSA 1436-1 )

tags: zlashdot Linux Athlon64X2 Debian Linux amd64

Posted by NI-Lab. (@nilab)