refactor(os): Simplify extended regex (#6)
This commit is contained in:
parent
a41d0599e6
commit
f1bab6bc60
2
setup.sh
2
setup.sh
@ -465,7 +465,7 @@ function add_zfs_hook_to_initramfs () {
|
||||
#1.16
|
||||
# Add zfs hook, remove fsck hook from initramfs.
|
||||
sed -ri \
|
||||
-e 's'$'\x1''(HOOKS=)(.*?[\(| ])(filesystems)([\)| ][^\r\n\f]*)'$'\x1''\1\2zfs \3\4'$'\x1''g' \
|
||||
-e 's'$'\x1''(HOOKS=)(.*?[( ])(filesystems)([) ][^\r\n\f]*)'$'\x1''\1\2zfs \3\4'$'\x1''g' \
|
||||
-e 's'$'\x1''((\()(fsck)(\)))'$'\x1''\2\4'$'\x1''g' \
|
||||
-e 's'$'\x1''(([[:space:]]+)(fsck)|(fsck)([[:space:]]+))'$'\x1'''$'\x1''g' \
|
||||
'/mnt/etc/mkinitcpio.conf'
|
||||
|
Loading…
x
Reference in New Issue
Block a user