hide mountpoints from nautilus

when building within a home directory, as /proc, /sys, etc are mounted
and unmounted into the chroot at various points in the build, corresponding
entries appear and disappear within the side panel of nautilus.

this is obviously undesirable.

use of `-o x-gvfs-hide` resolves this for the most part. i still see items
occasionally pop up and having spent some time experimenting, i'm putting
it down to buggy behaviour on the part of nautilus. (aside from those
appearing when debootstrap is running - debootstrap also needs this fix).

Gbp-Dch: Short
This commit is contained in:
Lyndon Brown 2020-03-12 14:52:58 +00:00 committed by Raphaël Hertzog
parent a46985b08a
commit 34ceb67718
5 changed files with 5 additions and 5 deletions

View File

@ -38,7 +38,7 @@ case "${1}" in
mkdir -p chroot/dev/pts
# Mounting /dev/pts
mount devpts-live -t devpts -o gid=5,mode=620 chroot/dev/pts || true
mount -t devpts -o gid=5,mode=620,x-gvfs-hide devpts-live chroot/dev/pts || true
# Creating stage file
Create_stagefile .build/chroot_devpts

View File

@ -38,7 +38,7 @@ case "${1}" in
mkdir -p chroot/proc
# Mounting /proc
mount proc-live -t proc chroot/proc
mount -t proc -o x-gvfs-hide proc-live chroot/proc
# Creating stage file
Create_stagefile .build/chroot_proc

View File

@ -40,7 +40,7 @@ case "${1}" in
mkdir -p chroot/sys/fs/selinux
# Mounting /sys/fs/selinux
mount selinuxfs-live -t selinuxfs chroot/sys/fs/selinux
mount -t selinuxfs -o x-gvfs-hide selinuxfs-live chroot/sys/fs/selinux
# Creating stage file
Create_stagefile .build/chroot_selinuxfs

View File

@ -38,7 +38,7 @@ case "${1}" in
mkdir -p chroot/sys
# Mounting /sys
mount sysfs-live -t sysfs chroot/sys
mount -t sysfs -o x-gvfs-hide sysfs-live chroot/sys
# Creating stage file
Create_stagefile .build/chroot_sysfs

View File

@ -41,7 +41,7 @@ case "${1}" in
mv chroot/var/lib/dpkg chroot/var/lib/dpkg.tmp
mkdir chroot/var/lib/dpkg
mount -t tmpfs tmpfs chroot/var/lib/dpkg
mount -t tmpfs -o x-gvfs-hide tmpfs chroot/var/lib/dpkg
mv chroot/var/lib/dpkg.tmp/* chroot/var/lib/dpkg
rm -rf chroot/var/lib/dpkg.tmp