[Pkg-sysvinit-devel] Bug#494001: Bug#494001: Bug#494001: Minimum kernel requirement for Squeeze
Kel Modderman
kel at otaku42.de
Wed Jun 3 07:57:34 UTC 2009
On Saturday 30 May 2009 20:39:42 Roger Leigh wrote:
> > Can you have a good look at [0] for errors please?
> >
> > [0] http://lists.alioth.debian.org/pipermail/pkg-sysvinit-commits/2009-May/001220.html
>
> It looks fine. The only slight oddity is the slight difference in logic
> between checkroot.sh and postinst. In particular, the need for
>
> touch /etc/mtab
>
> in checkroot.sh
>
> This uses:
> if [ Linux = "$KERNEL" ] && [ ! -L /etc/mtab ] && [ -f /proc/mounts ]
> then
> if touch /etc/mtab >/dev/null 2>&1
> then
> rm -f /etc/mtab && ln -s /proc/mounts /etc/mtab
> else
> log_warning_msg "cannot symlink /etc/mtab to /proc/mounts"
> fi
> fi
>
> whereas the initscripts postinst uses:
>
> if [ "$(uname -s)" = "Linux" ]
> then
> if [ -f /etc/mtab ] && [ ! -L /etc/mtab ] && [ -f /proc/mounts ]
> then
> rm -f /etc/mtab && ln -s /proc/mounts /etc/mtab
> fi
> fi
>
> I'm guessing here it's to cope with a read-only root on startup that the
> postinst doesn't need to care about.
Yeah. Is that odd? Does it need a comment?
Thanks, Kel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20090603/1c436ef6/attachment-0003.htm>
More information about the Pkg-sysvinit-devel
mailing list