6 %define nodefamily %{pldistro}-%{_arch}
8 %define name bootcd-%{nodefamily}
12 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
15 Packager: PlanetLab Central <support@planet-lab.org>
16 Distribution: PlanetLab %{plrelease}
17 URL: %(echo %{url} | cut -d ' ' -f 2)
19 Summary: Boot CD material for %{nodefamily}
24 Group: System Environment/Base
25 Source0: %{name}-%{version}.tar.gz
26 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
27 # other archs must be able to install this
30 Requires: dosfstools, mkisofs, gzip, mtools, syslinux
33 %define debug_package %{nil}
36 The Boot CD securely boots PlanetLab nodes into an immutable
45 # Build the reference image
51 rm -rf $RPM_BUILD_ROOT
55 # Install the reference image and build scripts
56 install -d -m 755 $RPM_BUILD_ROOT/%{_datadir}/%{name}
57 install -m 755 build.sh $RPM_BUILD_ROOT/%{_datadir}/%{name}/
59 build/isofs/bootcd.img \
65 tar -C $RPM_BUILD_ROOT/%{_datadir}/%{name}/ -xpf -
70 rm -rf $RPM_BUILD_ROOT
73 if [ -n "$SUDO_USER" ] ; then
74 # Allow user to delete the build directory
75 chown -h -R $SUDO_USER .
76 # Some temporary cdroot files like /var/empty/sshd and
77 # /usr/bin/sudo get created with non-readable permissions.
78 find . -not -perm +0600 -exec chmod u+rw {} \;
79 # Allow user to delete the built RPM(s)
80 chown -h -R $SUDO_USER %{_rpmdir}/%{_arch}
84 %defattr(-,root,root,-)
88 [ -f /etc/planetlab/nodefamily ] || { mkdir -p /etc/planetlab ; echo %{nodefamily} > /etc/planetlab/nodefamily ; }
91 * Wed Mar 26 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootCD-3.4-4 BootCD-3.4-5
92 - kargs.txt for serial boot fixed: now properly exposed to bootmanager through the overlay image
93 - build.sh cleaned up in the process
94 - actual location of selected node config file displayed
95 - import pypci rather than pypciscan
97 * Thu Feb 14 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - bootcd-3.4-3 bootcd-3.4-4
98 - build.sh support for -s <console_spec> (recommended vs using type)
99 - build.sh cleanup - usage clearer wrt types - removed old code
100 - fixed modprobe with args in pl_hwinit
102 * Thu Jan 31 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - bootcd-3.4-2 bootcd-3.4-3
103 - load floppy with modprobe flags
104 - support for creating a usb partition
105 - removed obsolete files newbuild.sh, bootcustom.sh and cdcustom.sh
107 * Mon Jan 29 2006 Marc E. Fiuczynski <mef@cs.princeton.edu> -
108 - added biginitrd usb image
110 * Fri Sep 2 2005 Mark Huang <mlhuang@cotton.CS.Princeton.EDU> -
113 %define module_current_branch 3.4