Hi everyone,
I'm writing a script to create a provision debian and archbsd jails.
At some point I need to run a command with
It's ok but it makes a mountpoint like this :
Wich is normal, but I want to umount this when it's not necessary anymore.
However I cannot get rid of this mount point.
In the end of the script, I added :
But the mountpoint is still present.
I tried to add :
but it does not work.
If I run
But when the script does, nothing happens.
Any idea ? :\
Thank you
Here is the part of the script :
I'm writing a script to create a provision debian and archbsd jails.
At some point I need to run a command with
jail
with mount.devfs
enabled.It's ok but it makes a mountpoint like this :
Code:
devfs 1.0K 1.0K 0B 100% /usr/jails/arch/dev
However I cannot get rid of this mount point.
In the end of the script, I added :
Code:
umount -f /usr/jails/arch/dev
I tried to add :
Code:
sleep 5
If I run
umount /usr/jails/arch/dev
in my shell , it works.But when the script does, nothing happens.
Any idea ? :\
Thank you
Here is the part of the script :
Code:
[...]
# Populate pacman keyring inside the jail
jail -c path=/usr/jails/$hostname mount.devfs command=/usr/bin/pacman-key --init
jail -c path=/usr/jails/$hostname mount.devfs command=/usr/bin/pacman-key --populate archbsd
# Clean
sleep 5
umount /usr/jails/$hostname/dev