Gentoo Archives: gentoo-catalyst

From: reitman@××××.ca
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] unmount failing, agetty and nfsd have a hold on .../dev
Date: Sun, 26 Feb 2006 22:28:47
Message-Id: 20060226222749.GA30446@xraymedia.com
1 Hello,
2
3 I am having problem unmounting filesystems at the end of livecd-stage1. For some reason,
4 the /dev directory is held by agetty and devfsd. The question is why my system devfsd and agetty
5 care about the /var/tmp/catalysts/.../dev directory ?
6
7 Here is my livecd-stage1 spec:
8
9 -----8<-----------------
10 subarch: amd64
11 version_stamp: 2005.1
12 target: livecd-stage1
13 rel_type: default
14 profile: default-linux/amd64/2005.1
15 snapshot: 2005.1
16 source_subpath: default/stage3-amd64-2005.1
17 livecd/use:
18 -X
19 -gtk
20 -gtk2
21 -kde
22 -arts
23 -alsa
24 -avi
25 -cdr
26 -cups
27 -esd
28 gphoto2
29 acpi
30 -dvd
31 -dvdr
32 -emacs
33 -ethereal
34 f77
35 -fbcon
36 -ginac
37 -odbc
38 -plotutils
39 -ppds
40 -samba
41 -sse
42 usb
43 -wmf
44 -xml
45 -xosd
46 -gnome
47 -opengl
48 -oss
49 -sdl
50 -spell
51 -truetype
52
53 livecd/packages:
54 baselayout
55 module-init-tools
56 hotplug
57 syslog-ng
58 pciutils
59 strace
60 nfs-utils
61 usbutils
62 e2fsprogs
63 nano
64 less
65 openssh
66 ----->8-----------------
67
68 Below is the output log (BRZ: lines is debugging that I added to the python script.)
69 I am using catalyst 1.1.10.10, and I am on amd64 2005.1 portage snapshot.
70
71 Any ideas ?
72 Thanks,
73 Boris
74
75 The Log:
76 ----
77 ...
78 Running command "/bin/bash /usr/lib/catalyst/targets/livecd-stage1/livecd-stage1.sh run 'baselayout' 'module-init-tools' 'hotplug' 'syslog-ng' 'pciutils' 'strace' 'nfs-utils' 'usbutils' 'e2fsprogs' 'nano' 'less' 'openssh'"
79 Running action sequence: preclean
80 Running command "/bin/bash /usr/lib/catalyst/targets/livecd-stage1/livecd-stage1.sh preclean"
81 Running action sequence: unbind
82 !!! catalyst: BRZ: about to umount /var/tmp/catalyst/tmp/default/livecd-stage1-amd64-2005.1/var/tmp/ccache
83 !!! catalyst: BRZ: doing it...
84 !!! catalyst: BRZ: about to umount /var/tmp/catalyst/tmp/default/livecd-stage1-amd64-2005.1/usr/portage/packages
85 !!! catalyst: BRZ: doing it...
86 !!! catalyst: BRZ: about to umount /var/tmp/catalyst/tmp/default/livecd-stage1-amd64-2005.1/usr/portage/distfiles
87 !!! catalyst: BRZ: doing it...
88 !!! catalyst: BRZ: about to umount /var/tmp/catalyst/tmp/default/livecd-stage1-amd64-2005.1/dev/pts
89 !!! catalyst: BRZ: doing it...
90 !!! catalyst: BRZ: about to umount /var/tmp/catalyst/tmp/default/livecd-stage1-amd64-2005.1/dev
91 !!! catalyst: BRZ: doing it...
92 !!! catalyst: BRZ: umount failed. sleeping 30 seconds...
93
94 ...
95
96 [1]+ Exit 1
97 boris@alien $ sudo /var/tmp/catalyst/tmp/default/livecd-stage1-amd64-2005.1/devfuser
98 boris@alien $ sudo fuser /var/tmp/catalyst/tmp/default/livecd-stage1-amd64-2005.1/dev
99 Password:
100 /var/tmp/catalyst/tmp/default/livecd-stage1-amd64-2005.1/dev: 1803c 7797c 7798c 7799c 7800c 7801c
101 boris@alien $ ps aux | grep "1803\|7797\|7798\|7799\|7800\|7801"
102 root 1803 0.0 0.0 7876 1184 ? Ss 2005 3:07 /sbin/devfsd /dev
103 root 7797 0.0 0.0 3468 628 tty2 Ss+ 2005 0:00 /sbin/agetty 38400 tty2 linux
104 root 7798 0.0 0.0 3468 628 tty3 Ss+ 2005 0:00 /sbin/agetty 38400 tty3 linux
105 root 7799 0.0 0.0 3468 628 tty4 Ss+ 2005 0:00 /sbin/agetty 38400 tty4 linux
106 root 7800 0.0 0.0 3468 628 tty5 Ss+ 2005 0:00 /sbin/agetty 38400 tty5 linux
107 root 7801 0.0 0.0 3468 628 tty6 Ss+ 2005 0:00 /sbin/agetty 38400 tty6 linux
108 boris 9695 0.0 0.0 2492 548 pts/6 S+ 17:19 0:00 grep 1803\|7797\|7798\|7799\|7800\|7801
109 boris@alien blackjack $ ps aux | grep "devfsd\|agetty"
110 root 1803 0.0 0.0 7876 1184 ? Ss 2005 3:07 /sbin/devfsd /dev
111 root 7797 0.0 0.0 3468 628 tty2 Ss+ 2005 0:00 /sbin/agetty 38400 tty2 linux
112 root 7798 0.0 0.0 3468 628 tty3 Ss+ 2005 0:00 /sbin/agetty 38400 tty3 linux
113 root 7799 0.0 0.0 3468 628 tty4 Ss+ 2005 0:00 /sbin/agetty 38400 tty4 linux
114 root 7800 0.0 0.0 3468 628 tty5 Ss+ 2005 0:00 /sbin/agetty 38400 tty5 linux
115 root 7801 0.0 0.0 3468 628 tty6 Ss+ 2005 0:00 /sbin/agetty 38400 tty6 linux
116 boris 9781 0.0 0.0 2492 560 pts/6 S+ 17:33 0:00 grep devfsd\|agetty
117
118 --
119 "The next sentence is true. The previous sentence is false."
120 --
121 gentoo-catalyst@g.o mailing list