diff options
author | Alec Warner <antarus@gentoo.org> | 2018-12-16 15:03:47 -0500 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2018-12-16 15:03:47 -0500 |
commit | 966f8cf9ec12ef770d1d01f5891f6a9e27725f83 (patch) | |
tree | d1f9c42ac53157321b6f87f3ed53027deb930c19 | |
parent | Support logging to stackdriver. (diff) | |
download | antarus-966f8cf9ec12ef770d1d01f5891f6a9e27725f83.tar.gz antarus-966f8cf9ec12ef770d1d01f5891f6a9e27725f83.tar.bz2 antarus-966f8cf9ec12ef770d1d01f5891f6a9e27725f83.zip |
Don't remount the tmpfs, just mount it.
Signed-off-by: Alec Warner <antarus@gentoo.org>
-rwxr-xr-x | src/infra.gentoo.org/rsync-node/wrap_rsync.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/infra.gentoo.org/rsync-node/wrap_rsync.sh b/src/infra.gentoo.org/rsync-node/wrap_rsync.sh index dd3e2df..443da9e 100755 --- a/src/infra.gentoo.org/rsync-node/wrap_rsync.sh +++ b/src/infra.gentoo.org/rsync-node/wrap_rsync.sh @@ -45,7 +45,7 @@ function sync() { # Also, setup the tmpfs to be big enough. # "${1}" is the serving partition. "${2}" is the update partition function init() { - mount -o remount -o size=1.3g "${DEST_DIR}" + mount -t tmpfs -o size=1.3g tmpfs "${DEST_DIR}" if [[ $? -ne 0 ]]; then logger -t rsync "Init: Failed to resize tmpfs: ${DEST_DIR}" return 1 |