Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Feb 2017 22:51:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        emulation@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 216983] emulators/linux_base-c6: info message advises to make the system not boot properly
Message-ID:  <bug-216983-4077-215lzgSSVq@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-216983-4077@https.bugs.freebsd.org/bugzilla/>
References:  <bug-216983-4077@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
John Smith <godevilove@ya.ru> has reassigned Bugzilla Automation
<bugzilla@FreeBSD.org>'s request for maintainer-feedback to
emulation@FreeBSD.org:
Bug 216983: emulators/linux_base-c6: info message advises to make the system
not boot properly
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216983



--- Description ---
1. install message for linux_base-c6 tells me to add 2 mounts to /etc/fstab
because some programs might need it:

pkg info -D linux_base-c6
linux_base-c6-6.8_11:
Always:
Some programs need linprocfs mounted on /compat/linux/proc.  Add the
following line to /etc/fstab:

linprocfs   /compat/linux/proc	linprocfs	rw	0	0

Then run "mount /compat/linux/proc".

Some programs need tmpfs mounted on /compat/linux/dev/shm.  Add the
following line to /etc/fstab:

tmpfs	 /compat/linux/dev/shm	tmpfs	rw,mode=3D1777	0	0

Then run "mount /compat/linux/dev/shm".

2. if I add them just like that and reboot - the system will boot into a si=
ngle
user mode, because '/etc/fstab' fails to mount those mounts.
3. it so turns out that one needs to add

linux_load=3D"YES"
linprocfs_load=3D"YES"

to the '/boot/loader.conf' file.

4. even with those lines added to the '/boot/loader.conf', the tmpfs mount =
in
'/etc/fstab' will still lead to booting into a single user mode.

As far as I know (not 100% sure), but adding 'late' option to the tmpfs mou=
nt
entry in '/etc/fstab' resolves the issue, but this is not mentioned anywhere
and the port's info message directly advises to add quite specific line to
'/etc/fstab', which leads to system not booting properly.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216983-4077-215lzgSSVq>