-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnfsroot.spec.in
70 lines (58 loc) · 1.52 KB
/
nfsroot.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Name: @META_NAME@
Version: @META_VERSION@
Release: @META_RELEASE@%{?dist}
Source0: %{name}-%{version}.tar.gz
License: GPL
Summary: Diskless Boot Support
Group: Applications/System
Requires: syslinux
Requires: memtest86+
Requires: dracut-network
Requires: rsync, nfs-utils, gzip, cpio, tar, kexec-tools, kernel
# Requires: munge keyutils
# Requires: diod >= 1.0.20
# Requires: kmod-v9fs
Requires(post): syslinux
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
%define bootdir /boot
%description
Diskless boot support.
%prep
%setup -q -n %{name}-%{version}
%build
%configure
make
%install
rm -rf ${RPM_BUILD_ROOT}
make install DESTDIR=${RPM_BUILD_ROOT}
%clean
rm -rf ${RPM_BUILD_ROOT}
%post
PATH=/sbin:/usr/sbin:$PATH
rm -f %{bootdir}/pxelinux.0 %{bootdir}/memdisk
install -m 644 %{_datadir}/syslinux/pxelinux.0 %{bootdir}/
install -m 644 %{_datadir}/syslinux/memdisk %{bootdir}/
mkdir -p -m 755 /writeable
%{_sbindir}/nfsroot-rebuild
if ! [ -e %{_sysconfdir}/fstab ]; then
install -m 644 %{_datadir}/nfsroot/initial-fstab %{_sysconfdir}/fstab
fi
%files
%defattr(-,root,root)
%doc NEWS
%doc ChangeLog
%config(noreplace) %{_sysconfdir}/sysconfig/nfsroot
%config(noreplace) %{bootdir}/pxelinux.cfg
%config(noreplace) %{bootdir}/pxelinux.msg
%{bootdir}/freedos.img
%{_sysconfdir}/rc.nfsroot*
%{_sbindir}/*
%{_mandir}/man8/*
%{_sysconfdir}/dracut.conf.d/*
%{_datadir}/dracut/modules.d/*
%{_sysconfdir}/kernel/postinst.d/*
%{_sysconfdir}/kernel/prerm.d/*
%{_datadir}/nfsroot
%changelog
* Mon Jun 19 2006 Jim Garlick <garlick@llnl.gov>
- Created