[OE-core] [PATCH 11/32] sysvinit-inittab_2.88dsf.bb: Allow multiple serial port consoles to be defined

Phil Blundell philb at gnu.org
Mon Sep 10 16:59:04 UTC 2012


On Mon, 2012-09-10 at 16:56 +0000, McClintock Matthew-B29882 wrote:
> On Sat, Sep 8, 2012 at 4:21 PM, Phil Blundell <philb at gnu.org> wrote:
> > On Mon, 2012-08-13 at 14:14 -0700, Scott Garman wrote:
> >> +pkg_postinst_${PN} () {
> >> +# run this on the target
> >> +if [ "x$D" == "x" ]; then
> >> +     tmp="${SERIAL_CONSOLES_CHECK}"
> >> +     for i in $tmp
> >> +     do
> >> +             j=`echo ${i} | sed s/^.*\;//g`
> >> +             if [ -z "`cat /proc/consoles | grep ${j}`" ]; then
> >> +                     sed -i /^.*${j}$/d /etc/inittab
> >> +             fi
> >> +     done
> >> +     kill -HUP 1
> >> +else
> >> +     exit 1
> >> +fi
> >> +}
> >
> > This makes the package uninstallable, even if SERIAL_CONSOLES_CHECK is
> > empty, on a READ_ONLY_ROOTFS.
> 
> What do you mean uninstallable? I could see this generating an error
> message at each boot, but not sure what you mean about uninstallable.

rootfs_ipk will refuse to generate a rootfs containing unconfigured
packages if IMAGE_FEATURES says that it should be read-only.

p.






More information about the Openembedded-core mailing list