I have a script that requires knowing the file system type by using
I'm running this script in a chroot centos7 environment running in a opensuse host, and it is failing because the file system type cannot be identified. The output of
df / is:
Filesystem 1K-blocks Used Available Use% Mounted on - 83873280 33613180 50260100 41% /
I've read that in order to chroot to work properly the following steps are needed:
mount -t proc proc <target chroot>/proc mount -o bind dev <target chroot>/dev chroot <target chroot> grep -v rootfs /proc/mounts > /etc/mtab
However, after these steps, the script still fails.
The actual content of
proc /proc proc rw,relatime 0 0 devtmpfs /dev devtmpfs rw,nosuid,size=16286476k,nr_inodes=4071619,mode=755 0 0
I also tried just linking /proc/mounts to /etc/mtab, but the same result.