6 %define name bootmanager
10 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
13 Packager: PlanetLab Central <support@planet-lab.org>
14 Distribution: PlanetLab %{plrelease}
15 URL: %(echo %{url} | cut -d ' ' -f 2)
17 Summary: The PlanetLab Boot Manager
22 Group: System Environment/Base
23 Source0: %{name}-%{version}.tar.gz
24 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
26 Requires: tar, gnupg, sharutils, bzip2, pypcilib
29 %define debug_package %{nil}
32 The PlanetLab Boot Manager securely authenticates and boots PlanetLab
39 gcc -shared -fPIC -ldl -Os -o source/libc-opendir-hack.so source/libc-opendir-hack.c
42 rm -rf $RPM_BUILD_ROOT
44 # Install source so that it can be rebuilt
45 find build.sh source | cpio -p -d -u $RPM_BUILD_ROOT/%{_datadir}/%{name}/
48 install -D -m 755 bootmanager.sh $RPM_BUILD_ROOT/var/www/html/boot/bootmanager.sh
50 # This is only required for 2.x bootcds.
51 install -D -m 644 support-files/uudecode.gz $RPM_BUILD_ROOT/var/www/html/boot/uudecode.gz
54 rm -rf $RPM_BUILD_ROOT
57 if [ -n "$SUDO_USER" ] ; then
58 # Allow user to delete the build directory
59 chown -h -R $SUDO_USER .
60 # Some temporary cdroot files like /var/empty/sshd and
61 # /usr/bin/sudo get created with non-readable permissions.
62 find . -not -perm +0600 -exec chmod u+rw {} \;
63 # Allow user to delete the built RPM(s)
64 chown -h -R $SUDO_USER %{_rpmdir}/%{_arch}
69 Remember to GPG sign /var/www/html/boot/bootmanager.sh with the
70 PlanetLab private key.
74 %defattr(-,root,root,-)
76 %ghost /var/www/html/boot/bootmanager.sh
77 /var/www/html/boot/uudecode.gz
80 * Wed Apr 15 2009 Marc Fiuczynski <mef@cs.princeton.edu> - BootManager-3.2-20
81 - The 'failboot' BOOT_STATE is for 4.3, not 4.2. Revert to using 'dbg' BOOT_STATE.
83 * Wed Apr 15 2009 Marc Fiuczynski <mef@cs.princeton.edu> - BootManager-3.2-19
85 - /etc/modprobe.d/blacklist
86 - /etc/modprobe.d/blacklist-compat
87 - /etc/modprobe.d/blacklist-firewire
88 - as the blacklist files.
89 - When no ethernet interfaces can be found for the production kernel set
90 - the BOOT_STATE to failboot, rather than dbg.
92 * Mon Apr 13 2009 Stephen Soltesz <soltesz@cs.princeton.edu> - BootManager-3.2-18
93 - looks like some modprobe fixes
94 - added nuke_lvm functions
95 - use 'sort' instead of 'sorted' for backward compatibility.
97 * Thu Feb 26 2009 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootManager-3.2-17
98 - from trunk : upload logs on myplc
99 - from trunk : early sshd start
100 - tweaked fstab for remount after kexec
101 - modprobe write: uses new module from pyplnet
103 * Fri Feb 20 2009 Stephen Soltesz <soltesz@cs.princeton.edu> - BootManager-3.2-16
104 - removed 'sorted' so older versions of python could continue to run code
105 - fixed WriteNetworkConfig so that it returns the result of calls to the API
106 - added e2fsck prior to mounting any filesystem.
108 * Tue Dec 30 2008 Marc Fiuczynski <mef@cs.princeton.edu> - BootManager-3.2-15
109 - Added in Daniel's support to only create a small /vserver and leave
110 - remaining disks alone so that their partitions can be used as raw
111 - disk extents by slices
113 * Mon Dec 15 2008 Daniel Hokka Zakrisson <daniel@hozac.com> - BootManager-3.2-14
115 - Order devices by PCI slot number.
116 - Module debugging code.
118 * Fri Sep 26 2008 Stephen Soltesz <soltesz@cs.princeton.edu> - BootManager-3.2-13
119 - include latest module tweaks in current production bootmanager.
121 * Tue Jul 08 2008 Stephen Soltesz <soltesz@cs.princeton.edu> - BootManager-3.2-12
122 - correctly convert port number to int before creating HTTPSConnection() object,
123 - plus other changes to file to accomodate this.
125 * Wed Jul 02 2008 Daniel Hokka Zakrisson <daniel@hozac.com> - BootManager-3.2-11
128 * Tue Jul 01 2008 Daniel Hokka Zakrisson <daniel@hozac.com> - BootManager-3.2-10
129 - Make the hack work.
131 * Tue Jul 01 2008 Daniel Hokka Zakrisson <daniel@hozac.com> - BootManager-3.2-9
134 * Fri Jun 27 2008 Faiyaz Ahmed <faiyaza@cs.princeton.edu> - BootManager-3.2-8
135 - move the UpdateNodeConfiguration step after the NodeUpdate step in ChainBoot
137 * Sat May 24 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootManager-3.2-7
140 * Thu Apr 24 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootManager-3.2-6
141 - changes in the state automaton logic
143 - usb-key threshhold increased to 17 G
144 - bootstrafs selection logic altered - uses /etc/planetlab/nodefamily instead of GetPlcRelease
146 * Wed Mar 26 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - BootManager-3.2-4 BootManager-3.2-5
147 - renamed step InstallBootstrapRPM into InstallBootstrapFS
148 - reviewed selection of bootstrapfs, based on nodegroups, for multi-arch deployment
149 - import pypcimap rather than pypciscan
150 - initial downlaoding of plc_config made more robust
151 - root and /vservers file systems mounted ext3
152 - calls to BootGetNodeDetails replaced with GetNodes/GetNodeNetworks
153 - also seems to be using session-based authentication rather than former hmac-based one
155 * Fri Feb 08 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - bootmanager-3.2-3 bootmanager-3.2-4
156 - usage of wireless attributes fixed and tested
157 - breakpoints cleaned up (no change for production)
158 - less alarming message when floppy does not get unloaded
160 * Thu Jan 31 2008 Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr> - bootmanager-3.2-2 bootmanager-3.2-3
161 - network config : support the full set of settings from ifup-wireless - see also http://svn.planet-lab.org/svn/MyPLC/tags/myplc-4.2-1/db-config
162 - removes legacy calls to PlanetLabConf.py
163 - refrains from unloading floppy
164 - first draft of the dual-method for implementing extensions (bootstrapfs-like images or yum install)
166 * Fri Sep 2 2005 Mark Huang <mlhuang@cotton.CS.Princeton.EDU> -