rpms/petitboot/devel petitboot-init, NONE, 1.1 petitboot.spec, 1.2, 1.3
David Woodhouse (dwmw2)
fedora-extras-commits at redhat.com
Sat Apr 7 04:01:39 UTC 2007
Author: dwmw2
Update of /cvs/extras/rpms/petitboot/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7273
Modified Files:
petitboot.spec
Added Files:
petitboot-init
Log Message:
Add petitboot-init
--- NEW FILE petitboot-init ---
#!/bin/sh
#
# kboot - Kboot initialization and command-line interface
#
# Written 2005, 2006 by Werner Almesberger
#
if [ "x$0" = x/init ]; then
__sysinit=true
else
__sysinit=false
fi
###############################################################################
#
# System setup and internal initialization
#
if $__sysinit; then
if [ ! -f /proc/partitions ]; then
mount -n -t proc none /proc
fi
if [ ! -d /sys/block ]; then
mount -n -t sysfs none /sys
# Borrowed from initramfs tools. No more hard coded sleep
echo "" > /proc/sys/kernel/hotplug
udevd --daemon
udevtrigger
udevsettle --timeout=15
fi
fi
cat > /etc/udev/rules.d/99-petitboot.rules <<EOF
SUBSYSTEM=="block",RUN+="/sbin/udev-helper"
EOF
while /bin/true;
do
/sbin/petitboot -u
# clean up after petitboot
for dir in /var/tmp/mnt-*;
do
umount "$dir"
rmdir "$dir"
done
done &
while /bin/true;
do
/sbin/getctty /dev/console /bin/sh
done
Index: petitboot.spec
===================================================================
RCS file: /cvs/extras/rpms/petitboot/devel/petitboot.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- petitboot.spec 6 Apr 2007 23:35:48 -0000 1.2
+++ petitboot.spec 7 Apr 2007 04:01:02 -0000 1.3
@@ -1,12 +1,13 @@
Name: petitboot
Version: 0.0.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Graphical kexec-based bootloader, originally for PlayStation 3
Group: System Environment/Base
License: GPL
URL: http://ozlabs.org/~jk/projects/petitboot/
Source0: http://ozlabs.org/~jk/projects/petitboot/downloads/%{name}-%{version}.tar.gz
+Source1: petitboot-init
Patch0: petitboot-0.0.1-artwork-not-executable.patch
Patch1: petitboot-0.0.1-defaults.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -31,7 +32,7 @@
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
-
+install -m0755 %{SOURCE1} $RPM_BUILD_ROOT/%{_sbindir}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -45,6 +46,9 @@
%changelog
+* Fri Apr 6 2007 David Woodhouse <dwmw2 at infradead.org> 0.0.1-3
+- Add udev rules and script for initrd /sbin/init
+
* Fri Apr 6 2007 David Woodhouse <dwmw2 at infradead.org> 0.0.1-2
- Support unattended boot of 'default' options, with timeout.
More information about the scm-commits
mailing list