fstab -a doesn't work in FN 11.2U5

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
I noticed that fstab -a doesn't work unless the directory already exists in the jail prior to issuing the command. In prior versions the directory didn't need to exist in the jail. Is this a bug?
Code:
ls -l /mnt/v1/scripts/
total 1
-rw-r--r--  1 root  wheel  0 Aug 10 16:33 test

root@freenas[/git/freenas-iocage-nextcloud]# iocage fstab -a nextcloud /mnt/v1/scripts /mnt/scripts nullfs rw 0 0
Destination: /mnt/v1/iocage/jails/nextcloud/root/mnt/scripts does not exist or is not a directory.
root@freenas[/git/freenas-iocage-nextcloud]# iocage exec nextcloud -- mkdir -p /mnt/scripts

root@freenas[/git/freenas-iocage-nextcloud]# iocage fstab -a nextcloud /mnt/v1/scripts /mnt/scripts nullfs rw 0 0
Successfully added mount to nextcloud's fstab
root@freenas[/git/freenas-iocage-nextcloud]#
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
Thanks for the link.
 
Top