diff --git a/rpm_spec/core-appvm.spec b/rpm_spec/core-appvm.spec index c446fc3b..0a1b6d3f 100644 --- a/rpm_spec/core-appvm.spec +++ b/rpm_spec/core-appvm.spec @@ -44,7 +44,9 @@ The Qubes core files for installation inside a Qubes AppVM. %pre mkdir -p $RPM_BUILD_ROOT/var/lib/qubes -[ -e $RPM_BUILD_ROOT/etc/fstab ] && mv $RPM_BUILD_ROOT/etc/fstab $RPM_BUILD_ROOT/var/lib/qubes/fstab.orig +if [ -e $RPM_BUILD_ROOT/etc/fstab ] ; then +mv $RPM_BUILD_ROOT/etc/fstab $RPM_BUILD_ROOT/var/lib/qubes/fstab.orig +fi %build make clean all diff --git a/rpm_spec/core-netvm.spec b/rpm_spec/core-netvm.spec index 7d96f014..b7d3df5e 100644 --- a/rpm_spec/core-netvm.spec +++ b/rpm_spec/core-netvm.spec @@ -42,7 +42,10 @@ The Qubes core files for installation inside a Qubes NetVM. %pre mkdir -p $RPM_BUILD_ROOT/var/lib/qubes -[ -e $RPM_BUILD_ROOT/etc/fstab ] && mv $RPM_BUILD_ROOT/etc/fstab $RPM_BUILD_ROOT/var/lib/qubes/fstab.orig +if [ -e $RPM_BUILD_ROOT/etc/fstab ] ; then +mv $RPM_BUILD_ROOT/etc/fstab $RPM_BUILD_ROOT/var/lib/qubes/fstab.orig +fi + %build