[BusyBox] Readonly fs "can't access tty; job control turned off"

Paul TOTH tothpaul at free.fr
Mon Dec 30 04:23:03 UTC 2002


Hello,

I've patched init.c to ignore errno 30 (Read-only file system)...and add a
rcS with :
mount -n -o remount,rw /

now it's ok.

Regards

Paul TOTH <tothpaul at free.fr>
http://tothpaul.free.fr
----- Original Message -----
From: "Paul TOTH" <tothpaul at free.fr>
To: <busybox at busybox.net>
Sent: Monday, December 30, 2002 10:57 AM
Subject: [BusyBox] Readonly fs "can't access tty; job control turned off"


> Hi,
>
> There're some messages about the message "sh: can't access tty; job
control
> turned off"
>
> I've found where this error come from...but don't know what's wrong.
>
> The init applet add inittab's task with new_init_action().
> This function check the tty access with access().
> My Kernel (Mandrake 7.0) return an error -EROFS in fs/open.c :
>
> int sys_access(const char * filename, int mode)
> [...]
> dentry=namei(filename);
> res=PTR_ERR(dentry);
> if (!IS_ERR(dentry)) {
>  res=permission(dentry->d_inode,mode);
>  /* SuS V2 requires we report a read only fs too */
>  if (!res && (mode & S_IWOTH) && IS_RDONLY(dentry->d_inode)
>   res=-EROFS;
>  dput(dentry);
> }
> [...]
>
> I don't know if the root fs should be read only or not when init start.
> So is it a busybox bug or not ?
>
> Regards
> Paul TOTH <tothpaul at free.fr>
> http://tothpaul.free.fr
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/mailman/listinfo/busybox
>




More information about the busybox mailing list