From: Andrzej O. <an...@ma...> - 2010-11-23 00:36:57
|
Dear Heiko, I have suggestion about finding proper cdrom in mount_cdrom script. When I have more, than one device with bootable DL image, sometime improper media is found as CD-rom, because the only criterion is presence of file DEVIL_LINUX. But if wrong media with different kernel version will be accepted, then boot proces can be impossible. When machine is in remote place, there is no method to solve problem. This situation is probable, when I remotely upgrade image, but new version is hot, risky and will not boot, so revert to previous image will be impossible. In this situation writing new, hot image as bootcd.*.new is risky and the only solution is to install-on-usb new image version on other USB device and change remotely via SOL boot sequence in BIOS. When new version will not work at all, we can revert to old boot sequence without working OS, but... this old version from now will find new media (or this new will find old media). So maybe better is to modify CD test in mount_cdrom from: [ -e ${mountpoint}/DEVIL-LINUX ] to [ -e ${mountpoint}/DEVIL-LINUX ] && [ "`cat ${mountpoint}/DEVIL-LINUX`" == "`cat VERSION`" ] and like this in other place. But after this change initrd must be always from this same build (and builds from this same date will be still undistinguishable, because in version is no hour). What do You think about this? Regards Andrzej Odyniec |