From 3ebbd696cfb297df5cdecc14d1c2d9f15704ff4c Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 2 Jul 2007 18:58:28 +0200 Subject: added 2 config files making use of savemap --- docs/menu-hda.lst | 45 +++++++++++++++++++++++++++++++++++++++++++++ docs/menu-hdc.lst | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 0 deletions(-) diff --git a/docs/menu-hda.lst b/docs/menu-hda.lst new file mode 100644 index 0000000..b34ce07 --- /dev/null +++ b/docs/menu-hda.lst @@ -0,0 +1,45 @@ +# +# boot last working image by default, and allow one failure +# + +hiddenmenu + +serial --unit=0 --speed=9600 +terminal --timeout=3 console serial + +# Here comes the mapping between saved entries and usable entries. All +# unexpected entries should be mapped to any image in order not to loop. +# Old entries 0..3 are remapped too. +savemap 240:0:241 244:1:245 241:0:242 242:1:243 243:1:246 245:1:246 246:0:247 247:0:242 0:0:241 1:0:242 2:1:245 3:1:246 4:0:241 + +default saved +timeout 3 +fallback 0 1 2 + +# image 0 +title Image 1 + root (hd0,1) + savedefault savemap + kernel /sys/active/kernel.img root=/dev/ram0 ro auto quiet console=ttyS0,9600 panic=1 hdb=noprobe ide1=noprobe flash=hda2 img=0 + initrd /sys/active/initrd.img + +# image 1 +title Image 2 + root (hd0,1) + savedefault savemap + kernel /sys/backup/kernel.img root=/dev/ram0 ro auto quiet console=ttyS0,9600 panic=1 hdb=noprobe ide1=noprobe flash=hda2 img=1 + initrd /sys/backup/initrd.img + +# image 2 +title Maintenance Kernel + root (hd0,0) + kernel /boot/firmware/firmware.img quiet console=ttyS0,9600 panic=1 hdb=noprobe ide1=noprobe flash=hda2 img=2 + +# image 3 +title Reboot + reboot + +# image 4 +title Halt + halt + diff --git a/docs/menu-hdc.lst b/docs/menu-hdc.lst new file mode 100644 index 0000000..2da4e7f --- /dev/null +++ b/docs/menu-hdc.lst @@ -0,0 +1,45 @@ +# +# boot last working image by default, and allow one failure +# + +hiddenmenu + +serial --unit=0 --speed=9600 +terminal --timeout=3 console serial + +# Here comes the mapping between saved entries and usable entries. All +# unexpected entries should be mapped to any image in order not to loop. +# Old entries 0..3 are remapped too. +savemap 240:0:241 244:1:245 241:0:242 242:1:243 243:1:246 245:1:246 246:0:247 247:0:242 0:0:241 1:0:242 2:1:245 3:1:246 4:0:241 + +default saved +timeout 3 +fallback 0 1 2 + +# image 0 +title Image 1 + root (hd0,1) + savedefault savemap + kernel /sys/active/kernel.img root=/dev/ram0 ro auto quiet console=ttyS0,9600 panic=1 ide0=noprobe hdd=noprobe flash=hdc2 img=0 + initrd /sys/active/initrd.img + +# image 1 +title Image 2 + root (hd0,1) + savedefault savemap + kernel /sys/backup/kernel.img root=/dev/ram0 ro auto quiet console=ttyS0,9600 panic=1 ide0=noprobe hdd=noprobe flash=hdc2 img=1 + initrd /sys/backup/initrd.img + +# image 2 +title Maintenance Kernel + root (hd0,0) + kernel /boot/firmware/firmware.img quiet console=ttyS0,9600 panic=1 ide0=noprobe hdd=noprobe flash=hdc2 img=2 + +# image 3 +title Reboot + reboot + +# image 4 +title Halt + halt + -- 1.4.4.3