[OpenIndiana-discuss] problem config grub permanent

Heiko L. h.lehmann at hs-lausitz.de
Thu Aug 29 20:43:23 UTC 2013



hallo,

I have a problem to configure grub on openindiana
I write a new entry into menu.lst (outside BOOTADM,LIBBE)
After reboot, the changes are overwritten.

Whats going wrong?

Who change this entry?
menu.lst seen to overwrite by bootadm on each reboot,
but I could not find the source.

Regards Heiko


- details
# grubcfg=/rpool/boot/grub/menu.lst

## edit menu.lst
## - add 0  (outside BOOTADM,LIBBE)
## - edit 4 (remove dom0_mem)
# vi $grubcfg

# bootadm list-menu
the location for the active GRUB menu is: /rpool/boot/grub/menu.lst
default 4
timeout 30
0 snv_134-1 new
1 OpenSolaris 2008.11 snv_101b_rc2 X86
2 OpenSolaris 2008.11 snv_101b_rc2 X86 text boot
3 xvm lom rpool
4 snv_134-1


# bootadm set-menu default=0

# egrep "default" $grubcfg
default 0
- default=0 accepted

# svcprop svc:/system/xvm/xend | grep mem
config/dom0-min-mem integer 15949
# svccfg -s xvm/xend setprop config/dom0-min-mem=3000
# svcprop svc:/system/xvm/xend | grep mem
config/dom0-min-mem integer 3000

# ls -l $grubcfg
-rw-r--r-- 1 root root  1298 2013-08-21 14:05 menu.lst

# egrep "dom0_mem" $grubcfg | wc -l
0
- ok: no dom0_mem defined

# date; reboot
Mittwoch, 21. August 2013, 14:08:00 Uhr UTC

# ls -l $grubcfg
-rw-r--r--  1 root root  1716 2013-08-21 14:10 menu.lst

# ls -l /var/svc/log/system-boot-config:default.log
-rw-r--r-- 1 root root 18361 2013-08-21 14:10 /var/svc/log/system-boot-config:default.log

# tail -3 /var/svc/log/system-boot-config:default.log
[ Aug 21 14:08:53 Enabled. ]
[ Aug 21 14:10:27 Executing start method ("/lib/svc/method/svc-boot-config"). ]
[ Aug 21 14:10:27 Method "start" exited with status 0. ]

# egrep "default" $grubcfg
default 5
- default changed from 0 to 5

# bootadm list-menu
the location for the active GRUB menu is: /rpool/boot/grub/menu.lst
default 5
timeout 30
0 snv_134-1 new
1 OpenSolaris 2008.11 snv_101b_rc2 X86
2 OpenSolaris 2008.11 snv_101b_rc2 X86 text boot
3 xvm lom rpool
4 snv_134-1
5 snv_134-1 new

# egrep "title|^kernel" $grubcfg | tail -2
title snv_134-1 new
kernel$ /boot/$ISADIR/xen.gz console=com1 dom0_mem=15949M dom0_vcpus_pin=false watchdog=false

- entry 5:
  - title: seen to be a clone from default (0)
  - kernelopt: no idea where the value comes from...


# svcprop svc:/system/xvm/xend | grep mem
config/dom0-min-mem integer 15949
- value not persist

sum:
- after reboot:
  - menu.lst changed
  - added new entry with "dom0_mem"
  - svcprop: dom0-min-mem changed






More information about the OpenIndiana-discuss mailing list