Gentoo Archives: gentoo-dev

From: "Reinhard Brandstädter" <r.brandstaedter@×××.at>
To: gentoo-dev@g.o
Subject: [gentoo-dev] Problems with INIT and $svcdir
Date: Mon, 10 Nov 2003 12:56:39
Message-Id: 3FAF8AF9.5050803@gmx.at
1 Sorry for crossposting this in the users and developers mailing list,
2 but since this seems to concern the init-process too it might be of
3 interest:
4
5 Hi!
6
7 I have a wierdness with my gentoo box which appeared recently after some
8 fs-whoes on my root partition.
9 The troubles with the ext3 fs are solved and usually I would have
10 expected gentoo to boot nicely again
11 but instead this happens at boot-up:
12
13 (please see the attached init-boot.log)
14
15 ... then the normal startup continues ...
16
17
18 remarks:
19 ----------------------------------
20
21 * for this bootup I've created /var/lib/init.d/started via a mkdir -p
22 /var/lib/init.d/started command
23 in /etc/init.d/hostname, otherwise the init process would loop
24 forever, checking the rootfs again and again.
25
26 * /etc/conf.d/rc contains:
27 svcdir="/var/lib/init.d
28 svcmount="no"
29 svcfstype="tmpfs"
30 (same settings as in) /sbin/functions.sh
31
32 * /var is not a seperate partition, it's directory on /
33
34 * I have also tried wit explicit use of
35 svcmount="yes"
36
37 * I have also re-emerged, baselayout and coreutils
38
39 * system uses actual ~x86 and 2.6.0-test9-gentoo from gentoo-dev
40
41 * error occurred after troubles with file-system that were fixed
42
43
44 after bootup & login:
45 ----------------------------------
46 * the $svcdir is mounted to tmpfs although $svcmount is set to "no"
47 and local filesystems are missing in mount-table although mounted
48 (see init-log) and accessible
49
50 redchili root # df -h
51 Filesystem Size Used Avail Use% Mounted on
52 /dev/hde2 19G 13G 5.6G 69% /
53 tmpfs 19G 13G 5.6G 69% /var/lib/init.d
54 none 379M 0 379M 0% /dev/shm
55 redchili root # mount
56 /dev/hde2 on / type ext3 (rw,noatime)
57 none on /proc type proc (rw)
58 none on /dev type devfs (rw)
59 tmpfs on /var/lib/init.d type tmpfs (rw,mode=0644,size=2048k)
60 none on /dev/shm type tmpfs (rw)
61 automount(pid6029) on /mnt/auto type autofs
62 (rw,fd=5,pgrp=6029,minproto=2,maxproto=4)
63 redchili root #
64
65 questions:
66 ----------------------------------
67 * I guess the reason for the looping of the init is the not creating of
68 /var/lib/init.d ($svcdir),
69 but I can't explain why it's not created by the rc-scripts
70
71 * why is there still a complaint
72 ln: creating symbolic link `/var/lib/init.d/started/checkroot' to
73 `/etc/init.d/checkroot': No such file or directory
74 although I explicitly create /var/lib/init.d/started in the hostname
75 script, and the root-fs is mounted read/write?
76
77 * in short: how to solve this?
78
79
80 kind regards,
81 Reinhard
82
83
84 --
85 Reinhard Brandstaedter r.brandstaedter@×××.at GPG: 0x033B81DB
86 - Student of Computer Science - J.K. University of Linz -
87 - <ICQ: 73059068> <Mobile: +43 699 12419541> -
88 - http://adelaide.dnsalias.net -

Attachments

File name MIME type
init-boot.log text/plain

Replies

Subject Author
Re: [gentoo-dev] Problems with INIT and $svcdir Martin Schlemmer <azarah@g.o>