Commit Graph

54 Commits

Author SHA1 Message Date
Alexey Gladkov
bc936fd7c2 Use spawn to run udevadm
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
2016-05-16 18:57:12 +02:00
Michael Shigorin
592b6794c0 init.c: drop /proc/sys/kernel/hotplug check
The hotplug helper /sbin/hotplug is now officially deprecated.
The control file /proc/sys/kernel/hotplug has moved to
/sys/kernel/uevent_helper, but it is expected to be disabled
on most systems in favor of udev and the netlink interface.
	-- http://lwn.net/Articles/166954/ (2006)
2014-08-16 04:36:28 +04:00
Sisyphus
04cfc75266 init: simplify trying mount devtmpfs into /dev 2013-11-06 20:34:30 +04:00
Sisyphus
515053b74f init: fix trying mount devtmpfs into /dev 2013-11-06 20:34:30 +04:00
Sisyphus
267ca6e7d1 fix build warning
tools.c: In function 'splash_verbose':
tools.c:309:2: warning: implicit declaration of function 'spawn' [-Wimplicit-function-declaration]

stage1.c: In function 'spawn_splash':
stage1.c:165:2: warning: implicit declaration of function 'spawn' [-Wimplicit-function-declaration]
2013-11-06 20:34:30 +04:00
Sisyphus
6e000ec0e3 add missed includes 2013-11-06 20:34:30 +04:00
Led
1915f90346 add common mkdir_dev() and mkdirs_dev() funcs
mkdir_dev() use for create subdir with mode 0755 in /dev directory
and return success if subdir already exist.
mkdirs_dev() used mkdir_dev() for create multiple subdirs.
2013-11-06 20:34:29 +04:00
Mikhail Efremov
f3240f3f36 init: Use devtmpfs for /dev if possible.
If devtmpfs already mounted into /dev (see CONFIG_DEVTMPFS_MOUNT
kernel option) then do nothing.
Otherwise try to mount devtmpfs or tmpfs.
2012-05-28 19:36:14 +04:00
Anton Farygin
fd2a83d725 check /bin/plymouth before exec 2010-12-10 19:58:22 +00:00
Anton V. Boyarshinov
f9d1682589 Merge remote branch 'gears/sisyphus' into glibc
Conflicts:
	propagator.spec
2010-12-02 13:29:53 +03:00
Anton V. Boyarshinov
878e6f1088 20101130-alt3
- telling plymouth about rootfs change added
2010-12-02 13:05:12 +03:00
Anton V. Boyarshinov
c34b06f4ea init.c: plymouth --newroot=/root call added 2010-12-01 14:53:42 +03:00
Anton V. Boyarshinov
3d2e77074f tty3 creation
waiting /dev/disk added
2010-11-20 19:20:08 +03:00
Sergey Bolshakov
696e48bceb sleep() for a while after udev start to avoid mythical race 2009-09-09 13:34:01 +04:00
Sergey Bolshakov
85378253f3 mostly formatting 2009-07-06 19:22:03 +04:00
Sergey Bolshakov
544819c936 Merge branch 'peers/stanv' 2009-07-06 18:45:44 +04:00
Sergey Bolshakov
e01b4d2209 run hooks, namely /sbin/init-{top,premount,bottom}, if exist 2009-07-06 17:21:01 +04:00
Andriy Stepanov
20cf255d7b parse `init=' parameter 2009-07-01 15:17:05 +04:00
Sergey Bolshakov
b322518861 deallocate all unused VTs before spawning next stage init 2009-05-26 15:43:22 +04:00
Sergey Bolshakov
268c1440fa not neeeded, actually 2008-09-19 14:09:59 +04:00
Sergey Bolshakov
c3595ee91d adopted for recent udev 2008-09-03 21:39:12 +04:00
Sergey Bolshakov
959fe2820d pass initramfs' udev version in /dev/.initramfs/udev_version,
just like our initrd expects.
2008-06-13 01:03:01 +04:00
Sergey Bolshakov
f3120f01dc unblock SIGIGN/SIGTSTP right before exec'ing secondary init 2008-05-22 18:19:34 +04:00
Sergey Bolshakov
0819fafca4 iso-on-nfs, iso-on-disk logic changed:
stop trying to mount --move initial /image filesystem
under new root's /image/isolinux
2008-03-18 18:04:38 +03:00
Sergey Bolshakov
320cc7656e fix few compiler warnings 2008-03-16 00:12:25 +03:00
Sergey Bolshakov
8acfa120d5 cleanup after merge 2008-03-13 19:21:16 +03:00
Sergey Bolshakov
ba911cea3a Merge branch 'standalone' into klibc 2008-03-13 19:19:25 +03:00
Sergey Bolshakov
dd757bba09 made standalone `init' binary to save few KB's 2008-03-12 15:19:18 +03:00
Sergey Bolshakov
0a6af0fb35 massive change caused by udev use in initramfs:
- added udevd, udevtrigger & udevsettle spawning from init,
reproducing nead same logic, found in initrd, created by
/sbin/mkinitd
- lots of obsolete by this change stuff removed
- use external /sbin/modprobe form klibc utils
in places, where manual module loading still needed
- pack unchangeable part of initramfs into `initfs'
file (gzipped cpio archive), which may be concatenated later
with other parts (especially kernel modules) to form
actual initramfs image.
2008-03-01 22:02:06 +03:00
Sergey Bolshakov
b83ad685a5 whatever 2008-03-01 19:16:25 +03:00
Sergey Bolshakov
419b4c1201 spawn udevd & Co from 1st stage init 2008-02-29 17:37:40 +03:00
Sergey Bolshakov
b6803f480d - fixed stupid error with env 2007-04-12 20:38:53 +04:00
Sergey Bolshakov
48d26b2d15 - cleaned up 2007-03-03 00:48:18 +03:00
Sergey Bolshakov
cc2e4b59f6 - switch to glibc 2007-02-27 16:54:57 +03:00
Sergey Bolshakov
795cdae5d7 - pass thru argv to next init
- fixed typo in message
2005-10-28 15:05:40 +00:00
Sergey Bolshakov
c199c141b5 - do not die when couldn't open console rw
- losetup tweaks
2005-02-03 15:38:15 +00:00
Sergey Bolshakov
409d36bfb7 fixed cdrom & disk+iso methods 2005-01-26 13:43:53 +00:00
Sergey Bolshakov
67363c8441 ftp method fixed 2005-01-24 18:12:06 +00:00
Sergey Bolshakov
d62b45ce1a propagate env from stage1 further 2005-01-21 13:52:04 +00:00
Sergey Bolshakov
8a5068e076 STAGE2_BINNAME is "/linuxrc" by default 2005-01-19 13:31:08 +00:00
Sergey Bolshakov
bba0e9966f image location changed to /image to not conflict with filesystem 2004-12-07 14:37:32 +00:00
Sergey Bolshakov
f3a737f206 kill stage1's shell, if any 2004-12-01 15:10:51 +00:00
Sergey Bolshakov
2e6d5b5b61 old trash removed 2004-11-30 18:12:23 +00:00
Sergey Bolshakov
25f4ab2cc3 another highly perversive scheme:
mounts ALTLinux etc under /mnt, then
mounts /mnt/xxx.clp under /root, then
mounts --move /mnt under /root/opt, then
mounts --move / under /root
--
someone, stop me
2004-11-30 16:11:41 +00:00
Sergey Bolshakov
0be6937de0 new stage2 spawning scheme 2004-11-30 14:44:10 +00:00
Anton Farygin
8e45f2d2e5 use cloop images for stage2
removed method live (use parameter live for detection stage2 filesystem image)
2004-11-30 11:47:57 +00:00
Anton Farygin
2c956f151a livecd mode and method added
rescue method must be rewrited !!!
2004-11-24 21:44:32 +00:00
Sergey Bolshakov
7f8d55ebef merged changes from propagator_1_1_dev 2004-11-22 13:47:29 +00:00
Stanislav Ievlev
4759507678 mount sysfs filesystem 2004-08-18 13:33:07 +00:00
Stanislav Ievlev
b6607d217c always not testing 2004-05-25 12:53:56 +00:00