Browse code

initramfs: added fsck tools

Change-Id: Ia6945962c5771f327a0dd742f909aa8b7fea2787
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1489
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: suezzelur <anishs@vmware.com>

Alexey Makhalov authored on 2016/10/06 06:19:33
Showing 1 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 Summary:	initramfs
3 3
 Name:		initramfs
4 4
 Version:	1.0
5
-Release:	3%{?dist}
5
+Release:	4%{?dist}
6 6
 License:	Apache License
7 7
 Group:		System Environment/Base
8 8
 Source:		photon-release-1.0.2.tar.gz
... ...
@@ -13,6 +13,7 @@ Provides:	initramfs
13 13
 BuildRequires:       linux = %{LINUX_VERSION}
14 14
 BuildRequires:       dracut
15 15
 BuildRequires:       ostree
16
+BuildRequires:       e2fsprogs
16 17
 Requires:	     linux = %{LINUX_VERSION}
17 18
 
18 19
 %description
... ...
@@ -25,7 +26,7 @@ echo 'add_drivers+="tmem xen-acpi-processor xen-evtchn xen-gntalloc xen-gntdev x
25 25
 echo 'add_dracutmodules+=" ostree systemd "' > /etc/dracut.conf.d/ostree.conf
26 26
 
27 27
 %build
28
-dracut --force --kver %{LINUX_VERSION} initrd.img-no-kmods
28
+dracut --force --kver %{LINUX_VERSION} --fscks "e2fsck fsck fsck.ext2 fsck.ext3 fsck.ext4" initrd.img-no-kmods
29 29
 %install
30 30
 rm -rf $RPM_BUILD_ROOT
31 31
 install -d $RPM_BUILD_ROOT/boot
... ...
@@ -42,8 +43,10 @@ rm -rf $RPM_BUILD_ROOT
42 42
 /boot/initrd.img-no-kmods 
43 43
 
44 44
 %changelog
45
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0-3
46
--	GA - Bump release of all rpms
45
+*   Wed Oct  5 2016 Alexey Makhalov <amakhalov@vmware.com> 1.0-4
46
+-   Added fsck tools
47
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0-3
48
+-   GA - Bump release of all rpms
47 49
 *   Thu Apr 28 2016 Alexey Makhalov <amakhalov@vmware.com> 1.0-2
48 50
 -   Update to linux-4.4.8
49 51
 *   Thu Mar 24 2016 Xiaolin Li <xiaolinl@vmware.com> 1.0-1