Baselayout-2 lvm init-script give error on stop. On shutdown the error is to fast to see. With /etc/init.d/lvm stop i can see the error. Reproducible: Always Steps to Reproduce: /etc/init.d/lvm stop lvm | * WARNING: you are stopping a boot service lvm | * Caching service dependencies ... [ ok ] lvm | * Shutting down the Logical Volume Manager lvm | * Shutting Down logical volume: /dev/vg-myspace/lv-backup ... [ ok ] lvm | * Shutting Down logical volume: /dev/vg-myspace/lv-private1 ... [ ok ] lvm | * Shutting Down logical volume: /dev/vg-myspace/lv-private2 ... [ ok ] lvm | * Shutting Down logical volume: /dev/vg-myspace/lv-private3 ... [ ok ] lvm |/lib/rcscripts/addons/lvm-stop.sh: line 50: [: rootfs: binary operator expected lvm |/lib/rcscripts/addons/lvm-stop.sh: line 52: [: too many arguments lvm |/lib/rcscripts/addons/lvm-stop.sh: line 50: [: rootfs: binary operator expected lvm |/lib/rcscripts/addons/lvm-stop.sh: line 52: [: too many arguments lvm |/lib/rcscripts/addons/lvm-stop.sh: line 50: [: rootfs: binary operator expected lvm |/lib/rcscripts/addons/lvm-stop.sh: line 52: [: too many arguments lvm |/lib/rcscripts/addons/lvm-stop.sh: line 50: [: rootfs: binary operator expected lvm |/lib/rcscripts/addons/lvm-stop.sh: line 52: [: too many arguments lvm | * Finished Shutting down the Logical Volume Manager My fstab does not contain any "rootfs", but "mount" give me one. rootfs on / type rootfs (rw) /dev/mapper/vg--myspace-lv--root on / type ext3 (rw,noatime,data=ordered)
Re-emerge lvm. Somehow you have an out of date lvm. This has been fixed for several lvm versions.