rpms/makebootfat/devel makebootfat-README.usbboot, NONE, 1.1 makebootfat.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Dmitry Butskoy (buc) fedora-extras-commits at redhat.com
Mon Dec 26 11:55:56 UTC 2005


Author: buc

Update of /cvs/extras/rpms/makebootfat/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26820/devel

Modified Files:
	.cvsignore sources 
Added Files:
	makebootfat-README.usbboot makebootfat.spec 
Log Message:
auto-import makebootfat-1.4-2 on branch devel from makebootfat-1.4-2.src.rpm


--- NEW FILE makebootfat-README.usbboot ---
1. Extract contents of the image */images/diskboot.img (from an appropriate
distribution) to a directory, for example /tmp/imagedir

2. Copy file ldlinux.bss (from /usr/share/makebootfat directory or,
originally, from syslinux-*.src.rpm sources) to the same directory 

4. Put file mbrfat.bin (from /usr/share/makebootfat, or makebootfat sources)
to the same directory

   Note: generally, it is not required to put both the files into the same dir,
but for simpler usage it is better.

5. Generate an image of appropriate size, at least the size of diskboot.img
(see above), but better some more (8 or 16 Mb may be useful)
   dd bs=1M count=16 </dev/zero >/tmp/image.img

6. Make the boot image in this temporary file image:
   losetup /dev/loop0 /tmp/image.img
   cd /tmp/imagedir
   /usr/bin/makebootfat -o /dev/loop0 -X -b ldlinux.bss \
	-m mbrfat.bin -F /tmp/imagedir
   losetup -d /dev/loop0

   Note: for syslinux >= 3, option `-Y' may be used instead of `-X'
   Note: if you specify real disk (i.e., /dev/sda instead of /dev/loop0),
   the whole disk area will be filled by a single fat filesystem...

7. Copy the created image to a target media:
   dd bs=512 </tmp/image.img >/dev/sda

8. Add another partitions (if needed) onto free space left on the media
   fdisk /dev/sda

Thats all.



--- NEW FILE makebootfat.spec ---
Summary: Utility for creation bootable FAT disk
Name: makebootfat
Version: 1.4
Release: 2%{?dist}
Group: 	Applications/System
License: GPL
URL: http://advancemame.sourceforge.net/doc-makebootfat.html
Source0: http://dl.sourceforge.net/sourceforge/advancemame/%{name}-%{version}.tar.gz
Source1: makebootfat-README.usbboot

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)


%description
This utility creates a bootable FAT filesystem and populates it
with files and boot tools.

It was mainly designed to create bootable USB and Fixed disk
for the AdvanceCD project (http://advancemame.sourceforge.net), but
can be successfully used separately for any purposes.


%prep
%setup -q

cp -a %{SOURCE1} README.usbboot


%build

%configure
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/x86
install -p -m644 mbrfat.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/x86
install -p -m644 test/ldlinux.bss $RPM_BUILD_ROOT%{_datadir}/%{name}/x86


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%doc AUTHORS COPYING HISTORY README README.usbboot
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/*/*


%changelog
* Mon Dec 26 2005 Dmitry Butskoy <Dmitry at Butskoy.name> - 1.4-2
- place mbrfat.bin and ldlinux.bss under %{_datadir}/%{name}/x86

* Mon Dec 24 2005 Dmitry Butskoy <Dmitry at Butskoy.name> - 1.4-1
- accepted for Fedora Extra (review by John Mahowald <jpmahowald at gmail.com>)

* Mon Oct  3 2005 Dmitry Butskoy <Dmitry at Butskoy.name> - 1.4-1
- initial release
- install mbrfat.bin and ldlinux.bss binary files, they are
  actually needed to create something useful here.
- add README.usbboot -- instruction how to make diskboot.img more helpful
  (written by me).



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/makebootfat/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	26 Dec 2005 11:54:58 -0000	1.1
+++ .cvsignore	26 Dec 2005 11:55:55 -0000	1.2
@@ -0,0 +1 @@
+makebootfat-1.4.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/makebootfat/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	26 Dec 2005 11:54:58 -0000	1.1
+++ sources	26 Dec 2005 11:55:55 -0000	1.2
@@ -0,0 +1 @@
+8ae9144e2bec8b8498361a25fdf76741  makebootfat-1.4.tar.gz




More information about the scm-commits mailing list