booting the usb image

2011-08-21 Thread Pierre-Philipp Braun

Hi,

I tried to boot my laptop with both, dfly-i386-2.10.1_REL.img and 
DragonFly-i386-LATEST-IMG.img (20-Aug-2011) without any success.  When I 
press F1 (DF/FBSD) it just prints the message again.  The image should 
be fine and i've written it to the usb stick correctly, so I'm wondering 
what's going wrong?


Sorry I've got no additional symptoms nor informations to share in this 
situation.  It just doesn't work.  The bootloader seems to be happy with 
itself without letting F1 to go through.  Only F5 (Drive 1) works.


How is the memory stick image created?  I'm doing the NetBSD memory 
sticks myself and it works.  So my laptop's bios seems to be okay.


Thanks
Pierre-Philipp


Re: jail -- ps: bad namelist - no kernbase

2011-01-04 Thread Pierre-Philipp Braun

Hi Olivier,

Thanks:-) But it's sloved enabling devfs for the guest, and the rules 
for that were missing in /etc/defaults/rc.conf and /etc/rc.d/jail. 
Maybe my reply didn't pass on the newsgroups though, since it hat patchs 
as joined documents.


//Pierre-Philipp

Oliver Fromme wrote:

Pierre-Philipp Braun pbr...@nethence.com wrote:
  I'm trying to run a jail guest and I'm experiencing a little issue.  I 
  can't ps,

  ps: bad namelist - no kernbase

Sounds like kernel version and ps binary don't match.
Are you sure they belong to the exact same DF version?

  nor ping,
  ping: socket: Operation not permitted

Raw sockets (thus ping) are disabled in jails by default,
for security reasons.  If you know what you're doing, you
can enable them with sysctl security.jail.allow_raw_sockets.

Best regards
   Oliver



--
//Pierre-Philipp


Re: jail -- ps: bad namelist - no kernbase

2011-01-02 Thread Pierre-Philipp Braun

 2.8.2).  Enabling procfs in the guest didn't help.  There's no device
 files appart from log, null and random but guests's dmesg says it's
 mounting devs.  I don't have any /etc/fstab but I don't think that's

Jail guest's dmesg was, of course, not his own, but real system's one. 
And devfs wasn't mounted.  Here are /etc/rc.d/jail and 
/etc/defaults/rc.conf patchs which fixes that (at least here) and allows,

jail_jailname_devfs_enable=yes
to be added into /etc/rc.conf.

The devfs issue was also experienced before 
(http://leaf.dragonflybsd.org/mailarchive/users/2009-10/msg00168.html)


Thanks:-)
//Pierre-Philipp
--- jail.dist   2011-01-03 02:41:39 +0100
+++ jail2011-01-03 02:50:53 +0100
@@ -30,6 +30,7 @@
eval _rootdir=\\$jail_${_j}_rootdir\
_fdescdir=${_rootdir}/dev/fd
_procdir=${_rootdir}/proc
+   _devdir=${_rootdir}/dev
eval _hostname=\\$jail_${_j}_hostname\
eval _ip=\\$jail_${_j}_ip\
eval _interface=\\${jail_${_j}_interface:-${jail_interface}}\
@@ -54,6 +55,9 @@
[ -z ${_fdesc} ]  _fdesc=NO
eval _procfs=\\${jail_${_j}_procfs_enable:-${jail_procfs_enable}}\
[ -z ${_procfs} ]  _procfs=NO
+eval _devfs=\\${jail_${_j}_devfs_enable:-${jail_devfs_enable}}\
+[ -z ${_devfs} ]  _devfs=NO
+
 
eval _mount=\\${jail_${_j}_mount_enable:-${jail_mount_enable}}\
[ -z ${_mount} ]  _mount=NO
@@ -69,6 +73,7 @@
#
debug $_j fdesc enable: $_fdesc
debug $_j procfs enable: $_procfs
+   debug $_j devfs enable: $_devfs
debug $_j mount enable: $_mount
debug $_j hostname: $_hostname
debug $_j ip: $_ip
@@ -76,6 +81,7 @@
debug $_j root: $_rootdir
debug $_j fdescdir: $_fdescdir
debug $_j procdir: $_procdir
+   debug $_j devdir: $_devdir
debug $_j fstab: $_fstab
debug $_j exec start: $_exec_start
debug $_j exec stop: $_exec_stop
@@ -190,6 +196,11 @@
secure_umount ${_procdir}
fi
fi
+   if checkyesno _devfs; then
+   if [ -d ${_devdir} ] ; then
+   secure_umount ${_devdir}
+   fi
+   fi
if checkyesno _mount; then
[ -f ${_fstab} ] || warn ${_fstab} does not exist
tail -r ${_fstab} | while read _device _mountpt _rest; do
@@ -281,6 +292,16 @@
fi
fi
fi
+   if checkyesno _devfs; then
+   if is_symlinked_mountpoint ${_devdir}; then
+   warn ${_devdir} has symlink as parent, not 
mounting
+   else
+   info Mounting devfs onto ${_devdir}
+   if [ -d ${_devdir} ] ; then
+   mount -t devfs devfs ${_devdir}
+   fi
+   fi
+   fi
_tmp_jail=${_tmp_dir}/jail.$$
eval jail ${_flags} -i ${_rootdir} ${_hostname} \
${_ip} ${_exec_start}  ${_tmp_jail} 21
--- rc.conf.dist2011-01-03 02:52:40 +0100
+++ rc.conf 2011-01-03 02:54:56 +0100
@@ -447,6 +447,7 @@
 #jail_example_exec_stop=/bin/sh /etc/rc.shutdown # command to execute in 
jail for stopping
 #jail_example_fdesc_enable=NO# mount fdesc in the 
jail
 #jail_example_procfs_enable=NO   # mount procfs in jail
+#jail_example_devfs_enable=YES   # mount devfs in jail
 #jail_example_mount_enable=NO# mount/umount jail's fs
 #jail_example_fstab= # fstab(5) for mount/umount
 #jail_example_flags=-l -U root   # flags for jail(8)