[sisyphus] sisyphus hal on branch 4.0

Mykola S. Grechukh =?iso-8859-1?q?gns_=CE=C1_altlinux=2Eorg?=
Чт Июл 24 13:03:44 MSD 2008


Здравствуйте,

есть бранч 4.0. [root на localhost ~]# rpm -q hal : hal-0.5.10-alt9.M40.1

[root на localhost ~]# hal-find-by-property --key block.device --string "/dev/sda1"
/org/freedesktop/Hal/devices/volume_uuid_479C_E336

ставлю новый хал из сизифа:

[root на localhost ~]# apt-get install hal
The following extra packages will be installed:
  ConsoleKit libConsoleKit libhal libhal-devel libpci pam-ck-connector
The following packages will be upgraded
  hal libhal libhal-devel
The following NEW packages will be installed:
  ConsoleKit libConsoleKit libpci pam-ck-connector
3 upgraded, 4 newly installed, 0 removed and 741 not upgraded.
[....]

[root на localhost ~]# rpm -q hal
hal-0.5.11-alt9

[root на localhost ~]# /etc/init.d/haldaemon restart
Stopping HAL service: [ DONE ]
Starting HAL service: [ DONE ]

[root на localhost ~]# hal-find-by-property --key block.device --string "/dev/sda1"
[root на localhost ~]# lshal | grep sda1
[root на localhost ~]# lshal | grep hda1

это всё из-за

[1928]: 11:54:45.095 [D] probe-volume.c:377: Doing probe-volume for /dev/sda1
[1928]: 11:54:45.107 [D] probe-volume.c:388: volume.block_size = 512
[1928]: 11:54:45.108 [D] probe-volume.c:392: volume.size = 4099991552
[1928]: 11:54:45.114 [I] probe-volume.c:621: invoking
volume_id_probe_all, offset=0, size=0
1928: 11:54:45.116: volume_id.c:45 probing at offset 0x0, size 0xf460e800
1928: 11:54:45.387: volume_id.c:103 probing at offset 0x0, size 0xf460e800
[1928]: 11:54:45.404 [I] probe-volume.c:623: volume_id_probe_all returned 0
/usr/libexec/hal/hald-probe-volume: symbol lookup error:
/usr/libexec/hal/hald-probe-volume: undefined symbol:
volume_id_get_usage

Тут интуиция подсказала, что нужно обновить libvolume_id (однако
удивляясь, почему нет зависимости на версию)

apt> install libvolume_id
Unrequested changes are needed to execute this operation.
The following packages will be upgraded
  libvolume_id libvolume_id-devel mkinitrd-initramfs udev udev-rules
The following packages will be REPLACED:
  hotplug (by udev)
The following packages will be REMOVED:
  bootsplash design-bootsplash-system-desktop kernel-image-wks-smp#2.6.26-alt1
  kernel-modules-alsa-wks-smp#2.6.26-alt1
kernel-modules-kqemu-wks-smp#1.3.0-alt0.1.pre11.132634.1 mkinitrd
  udev-initramfs
5 upgraded, 0 newly installed, 1 replaced, 7 removed and 0 kept.
Will need more 296kB of archives.
After unpacking 63.4MB disk space will be freed.
Do you want to continue? [Y/n] y

Здесь интуиции стало не по себе.

apt> install kernel-image-wks-smp#2.6.26-alt1
kernel-modules-kqemu-wks-smp#1.3.0-alt0.1.pre11.132634.1
kernel-modules-alsa-wks-smp#2.6.26-alt1
kernel-image-wks-smp#2.6.26-alt1 is already the newest version.
kernel-modules-kqemu-wks-smp#1.3.0-alt0.1.pre11.132634.1 is already
the newest version.
kernel-modules-alsa-wks-smp#2.6.26-alt1 is already the newest version.
Unrequested changes are needed to execute this operation.

The following packages will be upgraded
  klibc klibc-utils-initramfs mkinitrd udev-initramfs

The following packages have been kept back
  kernel-image-wks-smp#2.6.26-alt1 kernel-modules-alsa-wks-smp#2.6.26-alt1
  kernel-modules-kqemu-wks-smp#1.3.0-alt0.1.pre11.132634.1 mkinitrd
udev-initramfs

4 upgraded, 0 newly installed, 0 removed and 0 kept.
Will need more 191kB of archives.
After unpacking will need more 57.7MB of disk space.
Do you want to continue? [Y/n] y

apt> status
The following packages will be upgraded
  klibc klibc-utils-initramfs libvolume_id libvolume_id-devel mkinitrd
mkinitrd-initramfs udev udev-initramfs
  udev-rules
The following packages will be REPLACED:
  hotplug (by udev)
The following packages will be REMOVED:
  bootsplash design-bootsplash-system-desktop
9 upgraded, 0 newly installed, 1 replaced, 2 removed and 731 not upgraded.
Will need 486kB of archives.
After unpacking 5791kB disk space will be freed.

ага. Проверяем эту теорию:

apt> exit

[root на localhost ~]# apt-get install libvolume_id klibc

Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  klibc-utils-initramfs libvolume_id-devel udev udev-initramfs udev-rules
The following packages will be upgraded
  klibc klibc-utils-initramfs libvolume_id libvolume_id-devel udev
udev-initramfs udev-rules
The following packages will be REPLACED:
  hotplug (by udev)
7 upgraded, 0 newly installed, 1 replaced, 0 removed and 734 not upgraded.
Need to get 428kB of archives.
After unpacking 385kB disk space will be freed.
Do you want to continue? [Y/n]

теперь всё красиво.


Подробная информация о списке рассылки Sisyphus