Requires: util-linux
Requires: bash
Requires: initrd-recovery
+Requires: fm-data
%description
Provide kernel-based target image downloader.
This package would be included in partition image for RAMDISK2 (ramdisk-recovery.img)
+%package -n fm-data-rpi3
+Summary: RaspberryPi3 specific data for flash manager
+Group: System/Utilities
+Provides: fm-data
+
+%description -n fm-data-rpi3
+Provide flash-manager with partition table for flashing image and files of Raspberry Pi 3 board
+
%prep
%setup -q
mkdir -p %{buildroot}%{_datadir}/initrd-recovery/initrd.list.d
cp ./scripts/41-flash.list %{buildroot}%{_datadir}/initrd-recovery/initrd.list.d
+cp ./partition.info %{buildroot}%{_datadir}/partition.info
+
%post
%postun
%attr(700,root,root) %{_bindir}/flash-manager
%attr(700,root,root) %{init_script_dir}/*.sh
%attr(700,root,root) %{_datadir}/initrd-recovery/initrd.list.d/*.list
+
+%files -n fm-data-rpi3
+%attr(700,root,root) %{_datadir}/partition.info
--- /dev/null
+p:boot.img:/dev/mmcblk0p1:x
+p:rootfs.img:/dev/mmcblk0p2:x
+p:system-data.img:/dev/mmcblk0p3:x
+p:user.img:/dev/mmcblk0p5:x
+p:modules.img:/dev/mmcblk0p6:x
+p:ramdisk.img:/dev/mmcblk0p7:x
+p:ramdisk-recovery.img:/dev/mmcblk0p8:x
+f:Image:/dev/mmcblk0p1:/