Skip to content

Commit

Permalink
Merge pull request #1597 from OSInside/deprecated_config_methods
Browse files Browse the repository at this point in the history
Obsolete config functions baseMount/baseCleanMount
  • Loading branch information
schaefi committed Oct 24, 2020
2 parents f05f398 + 57bc9fc commit b63ec54
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions kiwi/config/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -296,27 +296,14 @@ function baseGetProfilesUsed {
# baseCleanMount
#--------------------------------------
function baseCleanMount {
for path in /proc/sys/fs/binfmt_misc /proc /dev/pts /sys;do
[ -d "${path}" ] && umount "${path}" &>/dev/null
done
echo "DEPRECATED: ${FUNCNAME[0]} is obsolete and only exists as noop method"
}

#======================================
# baseMount
#--------------------------------------
function baseMount {
if [ ! -e /proc/cmdline ];then
mount -t proc proc /proc
fi
if [ ! -e /sys/kernel ];then
mount -t sysfs sysfs /sys
fi
if [ ! -e /proc/sys/fs/binfmt_misc/register ];then
mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
fi
if [ ! -e /dev/pts/0 ];then
mount -t devpts -o mode=0620,gid=5 devpts /dev/pts
fi
echo "DEPRECATED: ${FUNCNAME[0]} is obsolete and only exists as noop method"
}

#======================================
Expand Down

0 comments on commit b63ec54

Please sign in to comment.