Skip to content

Commit

Permalink
Merge d72ce4d into 02a38ed
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Apr 30, 2019
2 parents 02a38ed + d72ce4d commit 9dc2abd
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
6 changes: 6 additions & 0 deletions package/yast2.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Apr 30 08:52:35 UTC 2019 - mvidner@suse.com

- Stop "ls: write error: Broken pipe" messages (bsc#1128032)
- 3.1.221

-------------------------------------------------------------------
Mon Mar 12 16:20:02 UTC 2018 - jreidinger@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2
Version: 3.1.220
Version: 3.1.221
Release: 0
Summary: YaST2 - Main Package
License: GPL-2.0
Expand Down
19 changes: 13 additions & 6 deletions scripts/yast2
Expand Up @@ -52,13 +52,20 @@ fi


# check that system directories are non-empty - bnc #450643
mount_ok=1;
test -z `ls /proc |head -n1` && echo "The /proc filesystem is not mounted." && mount_ok=0;
test -z `ls /sys |head -n1` && echo "The /sys filesystem is not mounted." && mount_ok=0;
test -z `ls /dev |head -n1` && echo "The /dev filesystem is not mounted." && mount_ok=0;
mount_ok=1
check_mount_ok()
{
if test -z `ls $1 2>/dev/null | head -n1`; then
echo "The $1 filesystem is not mounted."
mount_ok=0
fi
}
check_mount_ok /proc
check_mount_ok /sys
check_mount_ok /dev
if test $mount_ok -eq 0 ; then
echo "If you are running in a chroot environment, bind-mount missing filesystems.";
exit 1;
echo "If you are running in a chroot environment, bind-mount missing filesystems."
exit 1
fi

exit_code=0
Expand Down

0 comments on commit 9dc2abd

Please sign in to comment.