-
Notifications
You must be signed in to change notification settings - Fork 143
Description
My mfsbsd is started via UEFI's PXE boot. The boot process loads mfsroot into memory. During the compilation of mfsroot, I used the roothack mechanism and chrooted to /rw through the init process. However, after the system started, the actual / directory did not have the /rw directory. Instead, it contained the contents of the root.txz decompressed base file system. When using df -h to check, the base file system was prefixed with /rw. This is not what I expected.
[root@hadoop-docker-test11 boot]# cat loader.conf
$Id$
This is the /boot/loader.conf of your image
Custom mfsbsd variables
Set all auto-detected interfaces to DHCP
#mfsbsd.autodhcp="YES"
Define a new root password
#mfsbsd.rootpw="foobar"
Alternatively define a root password hash like in master.passwd
NOTICE: replace '$' characters with '%'
#mfsbsd.rootpwhash=""
Add additional nameservers here
#mfsbsd.nameservers="192.168.1.1 192.168.1.2"
Change system hostname
#mfsbsd.hostname="mfsbsd"
List of interfaces to be set
#mfsbsd.interfaces="em0 em1"
Individual configuration of each interface
#mfsbsd.ifconfig_em0="DHCP"
#mfsbsd.ifconfig_em1="DHCP"
List of special interfaces to be created
#mfsbsd.cloned_interfaces=""
List of mac_interfaces (see interfaces.conf.sample)
#mfsbsd.mac_interfaces="eth0"
#mfsbsd.ifconfig_eth0_mac="xx:xx:xx:xx:xx:xx"
#mfsbsd.ifconfig_eth0="inet 192.168.1.10/24"
Default router
#mfsbsd.defaultrouter="192.168.1.1"
List of static routes and their definitions
#mfsbsd.static_routes="r1 r2"
#mfsbsd.route_r1="-net 192.168.2 192.168.1.1"
#mfsbsd.route_r2="-net 192.168.3 192.168.1.1"
Do not change anything here until you know what you are doing
mfs_load="YES"
mfs_type="mfs_root"
mfs_name="/mfsroot"
ahci_load="YES"
mfsbsd.autodhcp="YES"
vfs.root.mountfrom="ufs:/dev/md0"
#mfsbsd.ifconfig_bge0="DHCP"
bootlog_enable="YES"
copy_staging="disable"
After the system starts up, the df -h command shows the following. But I don't have the "rw" directory.
[root@hadoop-freebsd-test13 roothome]$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/md0 618M 495M 73M 87% /
devfs 1.0K 0B 1.0K 0% /dev
tmpfs 246G 2.1G 244G 1% /rw
devfs 1.0K 0B 1.0K 0% /rw/dev
linprocfs 8.0K 0B 8.0K 0% /rw/compat/linux/proc
linsysfs 8.0K 0B 8.0K 0% /rw/compat/linux/sys
devfs 1.0K 0B 1.0K 0% /rw/compat/linux/dev
fdescfs 1.0K 0B 1.0K 0% /rw/compat/linux/dev/fd
tmpfs 244G 4.0K 244G 0% /rw/compat/linux/dev/shm
/dev/label/MEMDATA 433G 4.7G 394G 1% /rw/var
/dev/nda1 3.4T 12K 3.1T 0% /rw/var/mnt/691dd162654caa8f
/var/appjail/releases/amd64/14.2-RELEASE/default/release 433G 4.7G 394G 1% /rw/var/appjail/jails/myjail/jail/.appjail
devfs 1.0K 0B 1.0K 0% /rw/var/appjail/jails/myjail/jail/dev
/var/appjail/releases/amd64/14.2-RELEASE/default/release 433G 4.7G 394G 1% /rw/var/appjail/jails/hdfs-datanode7/jail/.appjail
/var/mnt/691dd162654caa8f 3.4T 12K 3.1T 0% /rw/var/appjail/jails/hdfs-datanode7/jail/var/lib/hadoop/data/vol1
/run/hadoop/datanode_scr 246G 2.1G 244G 1% /rw/var/appjail/jails/hdfs-datanode7/jail/var/lib/hadoop/short_circuit_read
/var/tmp/hdfs-datanode7 433G 4.7G 394G 1% /rw/var/appjail/jails/hdfs-datanode7/jail/tmp
devfs 1.0K 0B 1.0K 0% /rw/var/appjail/jails/hdfs-datanode7/jail/dev
/var/appjail/releases/amd64/14.2-RELEASE/default/release 433G 4.7G 394G 1% /rw/var/appjail/jails/myjail4/jail/.appjail
devfs 1.0K 0B 1.0K 0% /rw/var/appjail/jails/myjail4/jail/dev
[root@hadoop-freebsd-test13 roothome]$ ls -alh /
total 139
drwxr-xr-x 20 root wheel 1.9K Nov 20 19:06 .
drwxr-xr-x 20 root wheel 1.9K Nov 20 19:06 ..
-rw-r--r-- 1 root wheel 1.0K Nov 20 13:06 .cshrc
-rw-r--r-- 1 root wheel 0B Nov 20 13:06 .gitkeep
-rw-r--r-- 1 root wheel 495B Nov 20 13:06 .profile
-r--r--r-- 1 root wheel 6.0K Nov 20 13:06 COPYRIGHT
drwxr-xr-x 2 root wheel 2.9K Nov 20 13:07 bin
drwxr-xr-x 14 root wheel 4.2K Nov 20 13:07 boot
-rw-r--r-- 1 root wheel 3B Nov 20 13:06 boot.config
drwxr-xr-x 3 root wheel 64B Nov 20 13:06 compat
dr-xr-xr-x 15 root wheel 512B Nov 20 13:07 dev
-rw------- 1 root wheel 4.0K Nov 20 13:07 entropy
drwxr-xr-x 31 root wheel 6.9K Nov 20 17:32 etc
lrwxr-xr-x 1 root wheel 8B Nov 20 13:06 home -> var/home
drwxr-xr-x 4 root wheel 4.8K Nov 20 13:07 lib
drwxr-xr-x 3 root wheel 192B Nov 20 13:07 libexec
drwxr-xr-x 2 root wheel 0B Nov 20 13:06 media
lrwxr-xr-x 1 root wheel 7B Nov 20 13:06 mnt -> var/mnt
drwxr-xr-x 2 root wheel 0B Nov 20 13:06 net
lrwxr-xr-x 1 root wheel 7B Nov 20 13:06 opt -> var/opt
dr-xr-xr-x 2 root wheel 0B Nov 20 13:06 proc
drwxr-xr-x 2 root wheel 9.3K Nov 20 13:07 rescue
lrwxr-xr-x 1 root wheel 12B Nov 20 13:06 root -> var/roothome
drwxr-xr-x 3 root wheel 64B Nov 20 15:51 run
drwxr-xr-x 2 root wheel 9.3K Nov 20 13:07 sbin
lrwxr-xr-x 1 root wheel 7B Nov 20 13:06 srv -> var/srv
drwxr-xr-x 2 root wheel 0B Nov 20 13:06 stand
lrwxr-xr-x 1 root wheel 11B Nov 20 13:06 sys -> usr/src/sys
drwxrwxrwt 8 root wheel 640B Nov 20 18:25 tmp
drwxr-xr-x 12 root wheel 640B Nov 20 13:07 usr
drwxr-xr-x 36 root wheel 1.0K Nov 19 10:53 var
drwxr-xr-x 32 root wheel 1.9K Nov 20 13:07 var.mfs
This directory has affected my deployment of the appjail program. When I execute "appjail stop jail", an error occurs. It will report the error "mount.devfs: /rw/var/appjail/jails/myjail4/jail/dev: No such file or directory".
[root@hadoop-freebsd-test13 roothome]$ appjail stop myjail4
[00:00:01] [ warn ] [myjail4] Stopping myjail4...
myjail4: removed
jail: myjail4: mount.devfs: /rw/var/appjail/jails/myjail4/jail/dev: No such file or directory
[00:00:01] [ error ] [myjail4] An error has occurred while stopping the jail 'myjail4'