[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request dnschneid#4901 from drinkcat/notmpfs-ramfs
Browse files Browse the repository at this point in the history
Use ramfs instead of tmpfs
  • Loading branch information
dnschneid committed Nov 27, 2022
2 parents b791fb0 + 71b8888 commit ae59434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions installer/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,9 @@ if [ -z "$UPDATE$RESTOREBIN" ] && [ -n "$DOWNLOADONLY" -o -z "$TARBALL" ]; then
subdir="$RELEASE-$ARCH"
addtrap "rm -rf --one-file-system '$tmp'"

# Ensure that the temporary directory has exec+dev, or mount a new tmpfs
# Ensure that the temporary directory has exec+dev, or mount a new ramfs
if [ "$NOEXECTMP" = 'y' ]; then
mount -i -t tmpfs -o 'rw,dev,exec' tmpfs "$tmp"
mount -i -t ramfs -o 'rw,dev,exec' ramfs "$tmp"
# Ensure symfollow is set on platforms that feature it, but don't fail
# on ones that do not.
mount -o 'remount,symfollow' "$tmp" 2>/dev/null || true
Expand Down

0 comments on commit ae59434

Please sign in to comment.