Skip to content

Commit ceae41d

Browse files
committed
fix test scenario which was missing -i in sed expression
1 parent acb4092 commit ceae41d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

linux_os/guide/system/permissions/partitions/mount_option_nodev_nonroot_local_partitions/tests/vfat_without_nodev.pass.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Add nodev option to all records in fstab to ensure that test will
66
# run on environment where everything is set correctly for rule check.
77
cp /etc/fstab /etc/fstab.backup
8-
sed -e 's/\bnodev\b/,/g' -e 's/,,//g' -e 's/\s,\s/defaults/g' /etc/fstab.backup
8+
sed -i -e 's/\bnodev\b/,/g' -e 's/,,//g' -e 's/\s,\s/defaults/g' /etc/fstab.backup
99
awk '{$4 = $4",nodev"; print}' /etc/fstab.backup > /etc/fstab
1010
# Remount all partitions. (--all option can't be used because it doesn't
1111
# mount e.g. /boot partition

0 commit comments

Comments
 (0)