Bug#668319: grub-pc postins issuses a find / which takes an overly long time on large disks
Attila Kinali
attila at kinali.ch
Tue Apr 10 22:40:03 UTC 2012
Package: grub-pc
Version: 1.99-17
Severity: normal
Dear Maintainer,
grub-pc's postinst runs a find / over all local disks. This takes a lot of
time if large disks with lots of small files are installed. In my case
it takes nearly 20 minutes. This is IMHO not acceptable. And i do not see
a reason why grub-pc has to scan all files on a system.
Attila Kinali
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/44afc0ec-27fc-4664-b067-ce08d2e1d8c2 / ext3 rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
/dev/sda1 /boot ext3 rw,relatime,errors=continue,barrier=1,data=ordered 0 0
/dev/sda7 /home ext3 rw,relatime,errors=continue,barrier=1,data=ordered 0 0
/dev/sda5 /pure32 ext3 rw,relatime,errors=continue,barrier=1,data=ordered 0 0
/dev/disk/by-uuid/44afc0ec-27fc-4664-b067-ce08d2e1d8c2 /home/attila/tmp/skype/chroot/tmp ext3 rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/disk/by-id/ata-WDC_WD1600JS-22MHB0_WD-WCANM4565027
*********************** END /boot/grub/device.map
*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 44afc0ec-27fc-4664-b067-ce08d2e1d8c2
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 3.2.0-1-amd64' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 0a3d0d9b-22c7-4267-a002-35494437e9be
echo 'Loading Linux 3.2.0-1-amd64 ...'
linux /vmlinuz-3.2.0-1-amd64 root=UUID=44afc0ec-27fc-4664-b067-ce08d2e1d8c2 ro
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.2.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 0a3d0d9b-22c7-4267-a002-35494437e9be
echo 'Loading Linux 3.2.0-1-amd64 ...'
linux /vmlinuz-3.2.0-1-amd64 root=UUID=44afc0ec-27fc-4664-b067-ce08d2e1d8c2 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.2.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.1.0-1-amd64' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 0a3d0d9b-22c7-4267-a002-35494437e9be
echo 'Loading Linux 3.1.0-1-amd64 ...'
linux /vmlinuz-3.1.0-1-amd64 root=UUID=44afc0ec-27fc-4664-b067-ce08d2e1d8c2 ro
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.1.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.1.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 0a3d0d9b-22c7-4267-a002-35494437e9be
echo 'Loading Linux 3.1.0-1-amd64 ...'
linux /vmlinuz-3.1.0-1-amd64 root=UUID=44afc0ec-27fc-4664-b067-ce08d2e1d8c2 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.1.0-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.0.4' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 0a3d0d9b-22c7-4267-a002-35494437e9be
echo 'Loading Linux 3.0.4 ...'
linux /vmlinuz-3.0.4 root=/dev/sda6 ro
}
menuentry 'Debian GNU/Linux, with Linux 3.0.4 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 0a3d0d9b-22c7-4267-a002-35494437e9be
echo 'Loading Linux 3.0.4 ...'
linux /vmlinuz-3.0.4 root=/dev/sda6 ro single
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38.5' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 0a3d0d9b-22c7-4267-a002-35494437e9be
echo 'Loading Linux 2.6.38.5 ...'
linux /vmlinuz-2.6.38.5 root=/dev/sda6 ro
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38.5 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 0a3d0d9b-22c7-4267-a002-35494437e9be
echo 'Loading Linux 2.6.38.5 ...'
linux /vmlinuz-2.6.38.5 root=/dev/sda6 ro single
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg
*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat
*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 9 Apr 10 21:02 ata-HL-DT-ST_DVD-RAM_GH15L_K1K87LB5112 -> ../../sr0
lrwxrwxrwx 1 root root 9 Mar 5 15:48 ata-WDC_WD1600JS-22MHB0_WD-WCANM4565027 -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 5 15:48 ata-WDC_WD1600JS-22MHB0_WD-WCANM4565027-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 5 15:48 ata-WDC_WD1600JS-22MHB0_WD-WCANM4565027-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Mar 5 15:48 ata-WDC_WD1600JS-22MHB0_WD-WCANM4565027-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Mar 5 15:48 ata-WDC_WD1600JS-22MHB0_WD-WCANM4565027-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Mar 5 15:48 ata-WDC_WD1600JS-22MHB0_WD-WCANM4565027-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Mar 5 15:48 ata-WDC_WD1600JS-22MHB0_WD-WCANM4565027-part8 -> ../../sda8
lrwxrwxrwx 1 root root 16 Mar 5 15:48 cciss-3600508b100104e3953573633474d0003 -> ../../cciss/c0d0
lrwxrwxrwx 1 root root 18 Mar 5 15:48 cciss-3600508b100104e3953573633474d0003-part1 -> ../../cciss/c0d0p1
lrwxrwxrwx 1 root root 18 Mar 5 15:48 cciss-3600508b100104e3953573633474d0003-part2 -> ../../cciss/c0d0p2
lrwxrwxrwx 1 root root 9 Mar 5 15:48 scsi-SATA_WDC_WD1600JS-22_WD-WCANM4565027 -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 5 15:48 scsi-SATA_WDC_WD1600JS-22_WD-WCANM4565027-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 5 15:48 scsi-SATA_WDC_WD1600JS-22_WD-WCANM4565027-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Mar 5 15:48 scsi-SATA_WDC_WD1600JS-22_WD-WCANM4565027-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Mar 5 15:48 scsi-SATA_WDC_WD1600JS-22_WD-WCANM4565027-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Mar 5 15:48 scsi-SATA_WDC_WD1600JS-22_WD-WCANM4565027-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Mar 5 15:48 scsi-SATA_WDC_WD1600JS-22_WD-WCANM4565027-part8 -> ../../sda8
lrwxrwxrwx 1 root root 9 Apr 10 21:02 wwn-0x5001480000000000 -> ../../sr0
lrwxrwxrwx 1 root root 16 Mar 5 15:48 wwn-0x600508b100104e3953573633474d0003 -> ../../cciss/c0d0
lrwxrwxrwx 1 root root 18 Mar 5 15:48 wwn-0x600508b100104e3953573633474d0003-part1 -> ../../cciss/c0d0p1
lrwxrwxrwx 1 root root 18 Mar 5 15:48 wwn-0x600508b100104e3953573633474d0003-part2 -> ../../cciss/c0d0p2
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Mar 5 15:48 0a3d0d9b-22c7-4267-a002-35494437e9be -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 5 15:48 44afc0ec-27fc-4664-b067-ce08d2e1d8c2 -> ../../sda6
lrwxrwxrwx 1 root root 10 Mar 5 15:48 68109dd1-3668-493a-a45d-bfcbd983f1e0 -> ../../sda5
lrwxrwxrwx 1 root root 10 Mar 5 15:48 9ecc7c93-6cdd-4c1b-ba70-ac7c7629459b -> ../../sda7
lrwxrwxrwx 1 root root 18 Mar 5 15:48 a62c22c6-04bb-4b27-99d9-b82211fa8c61 -> ../../cciss/c0d0p1
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_CH, LC_CTYPE=de_CH (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages grub-pc depends on:
ii debconf [debconf-2.0] 1.5.42
ii grub-common 1.99-17
ii grub-pc-bin 1.99-17
ii grub2-common 1.99-17
ii ucf 3.0025+nmu2
grub-pc recommends no packages.
grub-pc suggests no packages.
-- debconf information:
grub2/kfreebsd_cmdline:
grub2/device_map_regenerated:
* grub2/linux_cmdline:
grub-pc/install_devices_failed: false
* grub-pc/chainload_from_menu.lst: true
grub-pc/kopt_extracted: true
grub-pc/postrm_purge_boot_grub: false
grub-pc/disk_description:
grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default:
grub-pc/install_devices_empty: false
* grub-pc/install_devices: /dev/disk/by-id/ata-WDC_WD1600JS-22MHB0_WD-WCANM4565027
grub-pc/install_devices_failed_upgrade: true
grub-pc/partition_description:
grub-pc/install_devices_disks_changed:
* grub-pc/mixed_legacy_and_grub2: true
More information about the Pkg-grub-devel
mailing list