|
|
@ -1205,6 +1205,7 @@ get_mounts_list()
|
|
|
|
|
|
|
|
|
|
|
|
get_mount_fstype()
|
|
|
|
get_mount_fstype()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
[ -e "${NEW_ROOT}"/etc/fstab ] || return 1
|
|
|
|
awk -v fs="$1" '
|
|
|
|
awk -v fs="$1" '
|
|
|
|
/^[[:blank:]]*#/ { next }
|
|
|
|
/^[[:blank:]]*#/ { next }
|
|
|
|
$2 == fs { print $3 }
|
|
|
|
$2 == fs { print $3 }
|
|
|
@ -1213,6 +1214,7 @@ get_mount_fstype()
|
|
|
|
|
|
|
|
|
|
|
|
get_mount_options()
|
|
|
|
get_mount_options()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
[ -e "${NEW_ROOT}"/etc/fstab ] || return 1
|
|
|
|
awk -v fs="$1" '
|
|
|
|
awk -v fs="$1" '
|
|
|
|
/^[[:blank:]]*#/ { next }
|
|
|
|
/^[[:blank:]]*#/ { next }
|
|
|
|
$2 == fs { print $4 }
|
|
|
|
$2 == fs { print $4 }
|
|
|
@ -1221,6 +1223,7 @@ get_mount_options()
|
|
|
|
|
|
|
|
|
|
|
|
get_mount_device()
|
|
|
|
get_mount_device()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
[ -e "${NEW_ROOT}"/etc/fstab ] || return 1
|
|
|
|
awk -v fs="$1" '
|
|
|
|
awk -v fs="$1" '
|
|
|
|
/^[[:blank:]]*#/ { next }
|
|
|
|
/^[[:blank:]]*#/ { next }
|
|
|
|
$2 == fs { print $1 }
|
|
|
|
$2 == fs { print $1 }
|
|
|
|