[OpenIndiana-discuss] opensolaris config grub permanent
Heiko L.
h.lehmann at hs-lausitz.de
Wed Aug 21 15:15:13 UTC 2013
hallo,
I have a problem to configure grub on opensolaris
I write a new entry into menu.lst (outside BOOTADM,LIBBE)
After reboot, the changes are overwritten.
Whats going wrong?
Who change this entry?
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
# 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
# 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 | head -2
title snv_134-1 new
kernel$ /boot/$ISADIR/xen.gz console=com1
# 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, seen to be a clone from default (0)
# svcprop svc:/system/xvm/xend | grep mem
config/dom0-min-mem integer 15949
sum:
- menu.lst changed after boot
- added new entry with "dom0_mem"
- svcprop: dom0-min-mem changed
- file system-boot-config:default.log changed at this time,
but content not interested
More information about the OpenIndiana-discuss
mailing list