mirror of
https://github.com/troglobit/finit.git
synced 2026-11-26 20:38:21 +00:00
Add nash-plugin patch, move Mandriva specifics to its own README file
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
1c88ae1f61
commit
89854a579f
5 files changed
+51
-32
No files matched your search
@@ -5,7 +5,8 @@ LDFLAGS =
|
|||||||
LIBS =
|
LIBS =
|
||||||
VERSION = 0.4-pre
|
VERSION = 0.4-pre
|
||||||
PKG = finit-$(VERSION)
|
PKG = finit-$(VERSION)
|
||||||
DFILES = Makefile README finit.c finit-mod.c finit-alt.c helpers.c helpers.h
|
DFILES = Makefile README finit.c finit-mod.c finit-alt.c helpers.c helpers.h \
|
||||||
|
patches/*patch
|
||||||
BINS = finit finit-mod finit-mdv
|
BINS = finit finit-mod finit-mdv
|
||||||
|
|
||||||
|
|
||||||
@@ -71,8 +72,8 @@ helpers.o: helpers.c Makefile
|
|||||||
|
|
||||||
dist:
|
dist:
|
||||||
rm -Rf $(PKG)
|
rm -Rf $(PKG)
|
||||||
mkdir -p $(PKG)/contrib
|
mkdir -p $(PKG)/contrib $(PKG)/patches
|
||||||
cp Makefile $(DFILES) $(PKG)
|
for i in $(DFILES); do cp $$i $(PKG)/`dirname $$i`; done
|
||||||
tar cf - $(PKG) | gzip -c > $(PKG).tar.gz
|
tar cf - $(PKG) | gzip -c > $(PKG).tar.gz
|
||||||
rm -Rf $(PKG)
|
rm -Rf $(PKG)
|
||||||
ls -l $(PKG).tar.gz
|
ls -l $(PKG).tar.gz
|
||||||
@@ -49,34 +49,6 @@ umount vi
|
|||||||
console fb null ram0 sda1 sda2 sda3 sr0 tty0
|
console fb null ram0 sda1 sda2 sda3 sr0 tty0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Using finit with alternative systems
|
|
||||||
------------------------------------
|
|
||||||
|
|
||||||
Currently tested only with Mandriva 2008. Proceed with caution, there are
|
|
||||||
problems related to udev and pam.
|
|
||||||
|
|
||||||
1 - Add init=/sbin/finit-mdv to the kernel boot line
|
|
||||||
|
|
||||||
2 - Provide a suitable /usr/sbin/services.sh, this is the one I use in my
|
|
||||||
test system:
|
|
||||||
|
|
||||||
mkdir /var/lock/subsys
|
|
||||||
chmod 1777 /var/lock/subsys
|
|
||||||
/etc/init.d/network start
|
|
||||||
dhclient eth0
|
|
||||||
/sbin/start_udev&
|
|
||||||
/etc/init.d/portmap start
|
|
||||||
/etc/init.d/nfs-common start
|
|
||||||
|
|
||||||
3 - Provide /etc/hostname if you don't have it already
|
|
||||||
|
|
||||||
4 - Set the pointer device in the X server configuration to /dev/input/mice
|
|
||||||
|
|
||||||
5 - Have a user named "user", or change the default in Makefile
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reboot and poweroff
|
Reboot and poweroff
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
|
||||||
|
Mandriva 2008
|
||||||
|
-------------
|
||||||
|
|
||||||
|
1 - Add init=/sbin/finit-mdv to the kernel boot line
|
||||||
|
|
||||||
|
2 - Provide a suitable /usr/sbin/services.sh, this is the one I use in my
|
||||||
|
test system:
|
||||||
|
|
||||||
|
mkdir /var/lock/subsys
|
||||||
|
chmod 1777 /var/lock/subsys
|
||||||
|
/etc/init.d/network start
|
||||||
|
dhclient eth0
|
||||||
|
/sbin/start_udev&
|
||||||
|
/etc/init.d/portmap start
|
||||||
|
/etc/init.d/nfs-common start
|
||||||
|
|
||||||
|
3 - Provide /etc/hostname if you don't have it already
|
||||||
|
|
||||||
|
4 - Set the pointer device in the X server configuration to /dev/input/mice
|
||||||
|
|
||||||
|
5 - Have a user named "user", or change the default in Makefile
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Mandriva 2008.1
|
||||||
|
---------------
|
||||||
|
|
||||||
|
If you have a stuck nash-hotplug consuming 100% of CPU after the boot, you
|
||||||
|
may want to patch mkinitrd using patches/mkinitrd-6.0.34-nash-hotplug.patch
|
||||||
|
|
||||||
|
|
||||||
+1
-1
@@ -193,7 +193,7 @@ int main()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
unlink("/etc/mtab");
|
unlink("/etc/mtab");
|
||||||
system("mount -a"); /* must be after creation of /dev/loop0 */
|
system("mount -a");
|
||||||
|
|
||||||
umask(0022);
|
umask(0022);
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
Prevent nash-hotplug to keep running after boot using 100% of cpu
|
||||||
|
|
||||||
|
diff -rud mkinitrd-6.0.34-orig/nash/hotplug.c mkinitrd-6.0.34/nash/hotplug.c
|
||||||
|
--- mkinitrd-6.0.34-orig/nash/hotplug.c 2008-03-06 21:20:34.000000000 -0300
|
||||||
|
+++ mkinitrd-6.0.34/nash/hotplug.c 2008-03-12 18:48:46.000000000 -0300
|
||||||
|
@@ -547,7 +547,7 @@
|
||||||
|
nashLogger(nc, NASH_ERROR, "parent exited without telling us\n");
|
||||||
|
close(nc->hp_childfd);
|
||||||
|
nc->hp_childfd = -1;
|
||||||
|
- break;
|
||||||
|
+ exit(1);
|
||||||
|
}
|
||||||
|
count += rc;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user