teelime
teeli****@users*****
2006年 8月 30日 (水) 00:17:23 JST
Index: dlkit2/cl.disklessify diff -u dlkit2/cl.disklessify:1.6 dlkit2/cl.disklessify:1.7 --- dlkit2/cl.disklessify:1.6 Sat Mar 4 00:04:50 2006 +++ dlkit2/cl.disklessify Wed Aug 30 00:17:23 2006 @@ -280,6 +280,13 @@ chmod "$CL_EXPORT_HOME_MODE" $CL_ROOT/export/home fi } + +config_bootrc() { + echo "Changing default boot device..." + cat $CL_ROOT/boot/solaris/bootenv.rc.localdisk | grep -v "setprop bootpath" \ + > $CL_ROOT/boot/solaris/bootenv.rc +} + network_iface() { netstat -i | tail +2 | while read name mtu dest other; do if [ ! "x$name" = xlo0 -a ! "x$dest" = xloopback ]; then @@ -291,10 +298,12 @@ setup_bootenv() { backup_file $CL_ROOT/etc/vfstab backup_file $CL_ROOT/etc/default/nfs + backup_file $CL_ROOT/boot/solaris/bootenv.rc config_vfstab config_default_nfs config_autofs + config_bootrc # An allopathy mkdir -p $CL_ROOT/etc/skel/.gnome2/panel2.d/default/launchers @@ -332,7 +341,8 @@ copy_local_disks ;; x-bootenv) find_root_slice - setup_bootenv ;; + setup_bootenv + /boot/solaris/bin/create_ramdisk $CL_ROOT ;; *) usage ;; esac