mirror of https://github.com/sipwise/netscript.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mr5.5
mr5.5.13
mr5.5.12
mr4.2.1
mr4.2.2
mr4.3.1
mr4.3.2
mr4.4.1
mr4.4.2
mr4.5.1
mr4.5.10
mr4.5.11
mr4.5.12
mr4.5.13
mr4.5.2
mr4.5.3
mr4.5.4
mr4.5.5
mr4.5.6
mr4.5.7
mr4.5.8
mr4.5.9
mr5.0.1
mr5.0.2
mr5.1.1
mr5.1.2
mr5.2.1
mr5.2.2
mr5.3.1
mr5.3.2
mr5.4.1
mr5.4.2
mr5.5.1
mr5.5.10
mr5.5.11
mr5.5.2
mr5.5.3
mr5.5.4
mr5.5.5
mr5.5.6
mr5.5.7
mr5.5.8
mr5.5.9
mr6.0.1
mr6.0.2
mr6.1.1
mr6.1.2
mr4.5
mr3.8
mr3.8.13
mr6.1
master
mr6.0
mr3.8.12
mr5.4
mr3.8.11
mr5.3
mr3.8.10
mr5.2
mr5.1
mr5.0
mr3.8.9
mr3.8.8
mr4.4
mr3.8.7
mr4.3
mr3.8.6
mr4.2
mr3.8.5
mr4.1
mr4.1.2
mr3.8.4
mr4.0
mr4.0.2
mr4.1.1
mr3.8.3
mr4.0.1
2.8
mr3.8.2
3.0
3.1
mr3.2.2
mr3.2.1
mr3.2
mr3.3.2
mr3.3.1
mr3.3
mr3.4.2
mr3.4.1
mr3.4
mr3.5.1
mr3.5
mr3.6.2
mr3.6.1
mr3.6
mr3.7.1
mr3.7.2
mr3.7
mr3.8.1
mprokop/MT10277
vseva/8067
ksolomko/vlan
mr3.5.1.1
mr3.5.1.2
mr3.6.1.1
mr3.6.1.2
mr3.6.1.3
mr3.6.2.1
mr3.6.2.2
mr3.6.2.3
mr3.7.1.1
mr3.7.1.2
mr3.7.1.3
mr3.7.1.4
mr3.7.1.5
mr3.7.2.1
mr3.7.2.2
mr3.7.2.3
mr3.8.1.1
mr3.8.1.2
mr3.8.10.1
mr3.8.10.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5.5.9.2
mr6.0.1.1
mr6.0.1.2
mr6.0.2.1
mr6.0.2.2
mr6.1.1.1
mr6.1.1.2
mr6.1.2.1
mr6.1.2.2
${ noResults }
Since lvm2 v2.02.106 its udev rule creates a /dev/disk/by-id/lvm-pv-uuid-<PV_UUID> symlink for PVs: https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=417e52c13a8156b11c25c411d44bda8b32bf87e4 When debootstrapping Debian/wheezy to a virtio disk from a system using lvm2 >=v2.02.106 (as present in Grml >=2014.11) this causes the resulting GRUB installation to look like that (`/media/ngcp-root` is the mounted logical volume with the rootfs which also includes /boot): | root@grml ~ # cat /media/ngcp-root/boot/grub/device.map | (hd0) /dev/disk/by-id/lvm-pv-uuid-RNZHr8-hLlc-nles-X9Gs-RYSp-Mqo7-uZTk6N | (hd1) /dev/vda and failing to boot with: > error: no such disk > Entering rescue mode... > grub rescue> When manually removing the lvm-pv-uuid* symlink from the Debian/jessie system before installing GRUB it works fine: | root@grml ~ # rm /dev/disk/by-id/lvm-pv-uuid-RNZHr8-hLlc-nles-X9Gs-RYSp-Mqo7-uZTk6N | root@grml ~ # ls /dev/disk/by-id | ata-QEMU_DVD-ROM_QM00003@ dm-name-ngcp-swap@ dm-uuid-LVM-lQhnvLyYmhESObLrZcnJs4FTZq9usVDzRex3ImRtrmqhpDH9xKBj22St82lHDADh@ | dm-name-ngcp-root@ dm-uuid-LVM-lQhnvLyYmhESObLrZcnJs4FTZq9usVDzrcMaDfk8O0RionEYRxdjnYxsY6eb0Esi@ | root@grml ~ # grml-chroot /media/ngcp-root/ grub-install --recheck /dev/vda # `grml-chroot` makes sure /proc, /sysfs and /dev are properly mounted in the chroot | Writing /etc/debian_chroot ... | Installation finished. No error reported. | root@grml ~ # cat /media/ngcp-root/boot/grub/device.map | (hd0) /dev/vda NOTE: This problem seems to exist only for virtio disks, when using a disk on the SATA bus the resulting device.map of the Debian/wheezy system looks like that and boots fine: | root@grml ~ # cat /media/vg0-root/boot/grub/device.map | (hd0) /dev/disk/by-id/ata-QEMU_HARDDISK_QM00005 | (hd1) /dev/disk/by-id/lvm-pv-uuid-lJJr4E-M96R-3eIS-b6YO-5usn-bH5o-osQV2B As a result check for Debian wheezy (or older) and if the disk is a virtio one (AKA /dev/vda), if so then remove the symlink of the live system before installing Debian incl. GRUB via grml-debootstrap. Reported as https://bugs.debian.org/782998 in Debian's BTS. Change-Id: I4b2cf9e39c88521ab7eac7799531508e658cc30d |
11 years ago | |
|---|---|---|
| debian | Release new version 3.9.0.0+0~mr4.0.0.0 | 11 years ago |
| .gitreview | MT#7505 Add .gitreview file | 12 years ago |
| Makefile | MT#10277 Fix NGCP_VERSION to track all the changes in repo | 11 years ago |
| deployment.sh | MT#12537 Workaround for GRUB installations to virtio disks with lvm >=v2.02.106 | 11 years ago |