Skip to content

Commit 2309e84

Browse files
committed
Removing the nosuid and nodev implementation from upgrade scripts as per Prakash-s suggestion
1 parent 48fa670 commit 2309e84

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

upgrade/upgrade-scripts/common.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -542,14 +542,6 @@ function update_fstab_for_upgrade() {
542542
# Update legacy /export/home paths to /home
543543
sed -i 's|/export/home|/home|g' /etc/fstab /etc/passwd || warn "failed to update legacy /export/home paths"
544544

545-
# Add nodev,nosuid only if not already present
546-
if grep -qE '^[^#].*\s/home\s' /etc/fstab; then
547-
if ! grep -qE '^[^#].*\s/home\s.*nodev' /etc/fstab || \
548-
! grep -qE '^[^#].*\s/home\s.*nosuid' /etc/fstab; then
549-
sed -i '/^[^#].*\s\/home\s/ s/defaults/defaults,nodev,nosuid/' /etc/fstab
550-
fi
551-
fi
552-
553545
# Ensure /home directory exists
554546
mkdir -p /home || die "failed to create /home directory"
555547

0 commit comments

Comments
 (0)