simplify using sed -i
This commit is contained in:
parent
7dba19275f
commit
1ece913403
@ -907,8 +907,7 @@ popd
|
||||
# On all known architectures, depending on 'kernel' should
|
||||
# mean "we need a kernel".
|
||||
pushd $RPM_BUILD_ROOT%{_libdir}/guestfs/supermin.d
|
||||
sed 's/^kernel-.*/kernel/' < packages > packages-t
|
||||
mv packages-t packages
|
||||
sed -i 's/^kernel-.*/kernel/' packages
|
||||
popd
|
||||
|
||||
# Guestfish colour prompts.
|
||||
|
Loading…
Reference in New Issue
Block a user