Remove useless file and directories after partition creation 16/212016/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.004137 accepted/tizen/5.5/unified/mobile/hotfix/20201027.085814 accepted/tizen/5.5/unified/wearable/hotfix/20201027.112443 accepted/tizen/unified/20190816.112419 submit/tizen/20190814.010236 submit/tizen_5.5/20191031.000010 submit/tizen_5.5_mobile_hotfix/20201026.185104 submit/tizen_5.5_wearable_hotfix/20201026.184304 tizen_5.5.m2_release
authorDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 13 Aug 2019 09:07:49 +0000 (18:07 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 13 Aug 2019 09:25:30 +0000 (18:25 +0900)
After initrd-recovery partition is created, a mkinitrd_recovery.sh
script as well as initrd-recovery directories are useless on rootfs
partition. This patch removes those after partition creation is done.

Change-Id: I4bda7338cddd62204e9c8473b5411de51be73f9a
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
packaging/initrd-recovery.spec

index f2d5619752528813a55d7c42cd73ab524ba90907..b7c152f0b308589379d40b8a4d75ed519ef947eb 100644 (file)
@@ -52,6 +52,8 @@ ln -s ../mnt-inform.mount %{buildroot}%{_unitdir}/local-fs.target.wants
 
 %posttrans
 %{initrd_recovery_libexec_dir}/mkinitrd-recovery.sh
+rm -rf %{initrd_recovery_libexec_dir}
+rm -rf %{_datadir}/initrd-recovery
 
 %files
 %defattr(-,root,root,-)