[OE-core] [PATCH 0/1] iproute2: de-bash its scripts to remove the bash dependency

2013-11-01 Thread Qi.Chen
From: Chen Qi The following changes since commit 523f2a9ea970713fb775bc48f84b67420b1106a0: cross-canadian: Improve comment (2013-10-30 18:01:34 +) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/iproute2 http://git.pokylinux.org/cgit.cgi/poky-contr

[OE-core] [PATCH 1/1] iproute2: de-bash its scripts to remove the bash dependency

2013-11-01 Thread Qi.Chen
From: Chen Qi If we build a minimal image with iproute2 installed, the following error will appear during rootfs. error: Can't install iproute2-3.10.0-r0.0@i586: no package provides /bin/bash The problem is that iproute2 has an implicit dependency on 'bash'. This dependency is from per-file dep

[OE-core] [PATCH 1/3] groff: fix pkg_postinst and remove unneeded do_install_prepend

2013-10-30 Thread Qi.Chen
From: Chen Qi Fix to take $D into consideration in pkg_postinst so that the postinst script could run at rootfs time. The existence of ${D} is ensured by the in base.bbclass. do_install[dirs] = "${D} ${S} ${B}" So there's no need for this do_install_prepend. Signed-off-by: Chen Qi --- met

[OE-core] [PATCH 3/3] jpeg: enable postinst to run at rootfs time successfully

2013-10-30 Thread Qi.Chen
From: Chen Qi --- meta/recipes-core/jpeg/jpeg_8d.bb | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/meta/recipes-core/jpeg/jpeg_8d.bb b/meta/recipes-core/jpeg/jpeg_8d.bb index eba5bf4..ad4fa51 100644 --- a/meta/recipes-core/jpeg/jpeg_8d.bb +++ b/meta/recipes-cor

[OE-core] [PATCH 0/3] Fixes about pkg_postinst

2013-10-30 Thread Qi.Chen
From: Chen Qi The following changes since commit 523f2a9ea970713fb775bc48f84b67420b1106a0: cross-canadian: Improve comment (2013-10-30 18:01:34 +) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/postinsts http://git.pokylinux.org/cgit.cgi/poky-cont

[OE-core] [PATCH 2/3] sgml-common: make postinst run successfully at rootfs time

2013-10-30 Thread Qi.Chen
From: Chen Qi Take $D into consideration and make postinst run successfully at rootfs time. Signed-off-by: Chen Qi --- .../sgml-common/sgml-common_0.6.3.bb | 16 1 file changed, 16 insertions(+) diff --git a/meta/recipes-devtools/sgml-common/sgml-common_0.6.3.

[OE-core] [PATCH 0/1] iproute2: explicitly add 'bash' to its RDEPENDS

2013-10-29 Thread Qi.Chen
From: Chen Qi The following changes since commit d69931da48b9cc5082feb46c654b9861f30244d9: scripts/oe-pkgdata-util: fix global name 'debug' is not defined (2013-10-29 15:24:07 +) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/iproute2 http://git.

[OE-core] [PATCH 1/1] iproute2: explicitly add 'bash' to its RDEPENDS

2013-10-29 Thread Qi.Chen
From: Chen Qi If we build a minimal image with iproute2 installed, the following error will appear during rootfs. error: Can't install iproute2-3.10.0-r0.0@i586: no package provides /bin/bash The problem is that iproute2 has an implicit dependency on 'bash'. This dependency is from per-file dep

[OE-core] [PATCH V2 0/1] runqemu-extract-sdk: add --numeric-owner option to tar command

2013-10-20 Thread Qi.Chen
From: Chen Qi The following changes since commit 529bf977e956175bd8405ebffc88194192e44740: update-rcd.bbclass: fix host/target test (2013-10-16 14:51:07 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/tar-numeric-owner http://git.pokylinux.org/c

[OE-core] [PATCH V2 1/1] runqemu-extract-sdk: add --numeric-owner option to tar command

2013-10-20 Thread Qi.Chen
From: Chen Qi If the same username exists on both target and the build host, but the uids differ, and we start target via NFS, then the uid for the user will be incorrect on target. For example, if postfix's uid on host is 119 and on target is 1024, then if we start target via NFS, the uid for p

[OE-core] [PATCH 1/1] image_types.bbclass: add --numeric-owner option to tar command

2013-10-18 Thread Qi.Chen
From: Chen Qi If the same username exists on both target and the build host, but the uids differ, and we start target via NFS, then the uid for the user will be incorrect on target. For example, if postfix's uid on host is 119 and on target is 1024, then if we start target via NFS, the uid for p

[OE-core] [PATCH 0/1] image_type.bbclass: add '--numeric-owner' to tar command

2013-10-18 Thread Qi.Chen
From: Chen Qi The following changes since commit 529bf977e956175bd8405ebffc88194192e44740: update-rcd.bbclass: fix host/target test (2013-10-16 14:51:07 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/tar-numeric-owner http://git.pokylinux.org/c

[OE-core] [PATCH 1/1] initscripts: insure checkroot.sh runs before anything writing to the file

2013-10-11 Thread Qi.Chen
From: Jeffrey C Honig If bootlogd was configured to write to a log file on the root file system, the checkroot.sh was not able to change the rootfs to read-only because bootlogd was started earlier and had a file descriptor open. Lowering the order of checkroot.sh ensures that the volatile files

[OE-core] [PATCH 0/1] initscripts: insure checkroot.sh runs before anything writing to the file

2013-10-11 Thread Qi.Chen
From: Chen Qi The following changes since commit 5445f71fc812a5fcf9bd67a26a500284af16ad39: bitbake: hob: change tooltip for live images (2013-10-07 16:25:02 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/checkroot.sh http://git.pokylinux.org/cg

[OE-core] [PATCH 0/1] device_table-minimal.txt: change group of /dev/hda back to disk

2013-10-09 Thread Qi.Chen
From: Chen Qi The following changes since commit 5445f71fc812a5fcf9bd67a26a500284af16ad39: bitbake: hob: change tooltip for live images (2013-10-07 16:25:02 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/device_table-typo http://git.pokylinux.o

[OE-core] [PATCH 1/1] device_table-minimal.txt: change group of /dev/hda back to disk

2013-10-09 Thread Qi.Chen
From: Chen Qi The group for /dev/hda should be disk instead of root. The group ID for /dev/hda was 6, but it was modified to be root by accident in the following commit. commit c5ef0294a9b8d178896a47c9f5d6e3dd6797e343 device_table-minimal.txt: use user/group names instead o

[OE-core] [PATCH V2 1/1] sysvinit: fix missing of boot log

2013-09-26 Thread Qi.Chen
From: Chen Qi Previously, our system had no boot log even if the bootlogd daemon was started correctly. The root cause is that the log file doesn't exist when starting the bootlogd. Add '-c' option to bootlogd so that it will create the boot log if it doesn't exist. Besides, we need to make sur

[OE-core] [PATCH V2 0/1] sysvinit: fix missing of boot log

2013-09-26 Thread Qi.Chen
From: Chen Qi The following changes since commit 4d8ab87d25ea6e59dc88375813ef88ee0ac813d0: build-appliance: Update SRCREV (2013-09-24 18:09:12 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/bootlogd http://git.pokylinux.org/cgit.cgi/poky-contri

[OE-core] [PATCH 1/1] sysvinit: fix missing of boot log

2013-09-26 Thread Qi.Chen
From: Chen Qi Previously, our system had no boot log even if the bootlogd daemon was started correctly. The root cause is that the log file doesn't exist when starting the bootlogd. Add '-c' option to bootlogd so that it will create the boot log if it doesn't exist. [YOCTO #5273] Signed-off-by

[OE-core] [PATCH 0/1] sysvinit: fix missing of boot log

2013-09-26 Thread Qi.Chen
From: Chen Qi The following changes since commit 4d8ab87d25ea6e59dc88375813ef88ee0ac813d0: build-appliance: Update SRCREV (2013-09-24 18:09:12 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/bootlogd http://git.pokylinux.org/cgit.cgi/poky-contri

[OE-core] [PATCH 1/1] buildhistory.bbclass: always record PKG, PKGE, PKGV and PKGR

2013-09-25 Thread Qi.Chen
From: Chen Qi The buildhistory.bbclass always records PV instead of PKGV. However, the buildhistory-diff script treats PKGV as a monitored variable instead of PV. If a recipe's PV changes, for example, hello_1.0.bb is renamed to hello_2.0.bb, then buildhistory-diff reports nothing because PV is

[OE-core] [PATCH 0/1] buildhistory.bbclass: always record PKG, PKGE, PKGV and PKGR

2013-09-25 Thread Qi.Chen
From: Chen Qi The following changes since commit 4d8ab87d25ea6e59dc88375813ef88ee0ac813d0: build-appliance: Update SRCREV (2013-09-24 18:09:12 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/buildhistory http://git.pokylinux.org/cgit.cgi/poky-co

[OE-core] [PATCH 1/1] image.bbclass: uninstall package only if it's already installed

2013-09-22 Thread Qi.Chen
From: Chen Qi Remove a package from rootfs only if it's already installed. Also, if a package is uninstalled, remove it from installed_pkgs.txt. [YOCTO #5169] Signed-off-by: Chen Qi --- meta/classes/image.bbclass | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git

[OE-core] [PATCH 0/1] image.bbclass: uninstall package only if it's already installed

2013-09-22 Thread Qi.Chen
From: Chen Qi The following changes since commit 1181e691197ab223e325546185d0a991e5ccbf1c: bitbake: build: Add logfile to add TaskBase events (2013-09-16 13:12:34 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/uninstall-if-installed http://git

[OE-core] [PATCH 0/1] rpm: fix typo

2013-09-15 Thread Qi.Chen
From: Chen Qi The following changes since commit 5fca4d286eec240ad57d90defa43cd0ff24f88ed: linux-yocto/3.10: genericx86 meta data factoring (2013-09-14 08:36:26 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/rpm-typoi http://git.pokylinux.org/c

[OE-core] [PATCH 1/1] rpm: fix typo in PACKAGECONFIG

2013-09-15 Thread Qi.Chen
From: Chen Qi Fix typo, change PACAKGECONFIG to PACKAGECONFIG. Signed-off-by: Chen Qi --- meta/recipes-devtools/rpm/rpm_5.4.9.bb |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/rpm/rpm_5.4.9.bb b/meta/recipes-devtools/rpm/rpm_5.4.9.bb index bd05336

[OE-core] [PATCH 0/1] image.bbclass: do not automatically remove update-rc.d

2013-09-12 Thread Qi.Chen
From: Chen Qi The following changes since commit bd76847d867f9f76f76f033439cfb834cf59380f: libnewt-python: Don't write a whiptail package (2013-09-12 08:23:42 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/do-not-remove-updatercd http://git.po

[OE-core] [PATCH 1/1] image.bbclass: do not automatically remove update-rc.d

2013-09-12 Thread Qi.Chen
From: Chen Qi In rootfs_uninstall_unneeded function, the update-rc.d package would be removed if no 'package-management' and no delayed postinsts. However, in update-rc.d.bbclass, the update-rc.d package is only recommended. Thus, if NO_RECOMMENDATIONS is enabled or 'update-rc.d' is added to BAD

[OE-core] [PATCH 1/1] update-rc.d.bbclass: change RRECOMMENDS to RDEPENDS

2013-09-12 Thread Qi.Chen
From: Chen Qi If a package inherits update-rc.d.bbclass, it actually needs it to update the symlinks under /etc/rc?.d/ directories. This is a runtime dependency. For example, if we try to upgrade the dropbear on target, its postinst process will need the update-rc.d utility available, otherwise,

[OE-core] [PATCH 0/1] update-rc.d.bbclass: change RRECOMMENDS to RDEPENDS

2013-09-12 Thread Qi.Chen
From: Chen Qi The following changes since commit bd76847d867f9f76f76f033439cfb834cf59380f: libnewt-python: Don't write a whiptail package (2013-09-12 08:23:42 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/updatercd-rdepends http://git.pokylin

[OE-core] [PATCH 0/1] init-live.sh: distinguish between a read-only image and a read-write one

2013-09-10 Thread Qi.Chen
From: Chen Qi The following changes since commit e15dc0911656d4fe44025e71ed3b6763841b05db: mount.sh: automount cdrom device even if no ID_FS_TYPE available (2013-09-10 21:19:17 +0800) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/init-live-iso-hddimg

[OE-core] [PATCH 1/1] init-live.sh: distinguish between a read-only image and a read-write image

2013-09-10 Thread Qi.Chen
From: Chen Qi The iso and hddimg share a common concept of 'live image', and they use the same initramfs and thus the same init. However, that init script in initramfs made a wrong assumption that the rootfs image was read-only by itself. This is apparently not true for hddimg. To make things wo

[OE-core] [PATCH 1/1] mount.sh: automount cdrom device even if no ID_FS_TYPE available

2013-09-10 Thread Qi.Chen
From: Chen Qi This script was modified to check whether $ID_FS_TYPE is empty before automount, however, for cdrom devices on qemu, the ID_FS_TYPE is not set, yet the device should be mounted. Otherwise, when booting an iso image with runqemu, the boot process hangs at 'waiting for removable media

[OE-core] [PATCH 0/1] Fix qemu iso image hang problem

2013-09-10 Thread Qi.Chen
From: Chen Qi The following changes since commit 2ab1bf27f79beadc45e86a26c85fc0b95ae3496f: bitbake: prserv: Ensure data is committed (2013-09-08 10:51:56 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/qemu-iso-hang http://git.pokylinux.org/cgit

[OE-core] [PATCH 1/2] sysvinit: fix indentation

2013-09-08 Thread Qi.Chen
From: Chen Qi Fix indentation in SRC_URI to conform to the indentation convention in OE. Signed-off-by: Chen Qi --- meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb b/me

[OE-core] [PATCH 2/2] sysvinit: remove unused files

2013-09-08 Thread Qi.Chen
From: Chen Qi The 'need' and 'provide' files are there for simpleinit compatability, according to the comments in these two files. However, we don't use simpleinit and there's even no simpleinit recipe in OE. Besides, these two files are not installed. This patch removes these two unused files.

[OE-core] [PATCH 0/2] sysvinit: fix indentation and remove two unused files

2013-09-08 Thread Qi.Chen
From: Chen Qi The following changes since commit 2ab1bf27f79beadc45e86a26c85fc0b95ae3496f: bitbake: prserv: Ensure data is committed (2013-09-08 10:51:56 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/sysv-cleanup http://git.pokylinux.org/cgit.

[OE-core] [PATCH V2 2/2] ptest.bbclass: add cleandirs flag to do_install_ptest_base

2013-09-05 Thread Qi.Chen
From: Chen Qi The do_install_ptest_base task should have cleandirs flag, just like the do_install task. The ${D}${PTEST_PATH} directory should be cleaned, Otherwise, there would be similar errors like below if the do_install_ptest_base task is rerun. ln: failed to create symbolic link `xxx':

[OE-core] [PATCH V2 1/2] ptest.bbclass: fix error on ubuntu host

2013-09-05 Thread Qi.Chen
From: Chen Qi The do_install_ptest_base function uses 'type -t' command to check whether do_install_ptest is a function and acts correspondingly. However, the 'type' command is a shell builtin and its behavior is not all the same across Linux distros. On ubuntu, if we use #!/bin/sh as the interp

[OE-core] [PATCH V2 0/2] ptest: add cleandirs flag and fix error on ubuntu host

2013-09-05 Thread Qi.Chen
From: Chen Qi The following changes since commit f41b7a7d4d0463a0dfafe6621d01680b81798019: bitbake: hob: remove PACKAGE_INSTALL variable setting from hob (2013-09-04 14:18:49 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/ptest-dash http://git

[OE-core] [PATCH 2/2] ptest.bbclass: add cleandirs flag to do_install_ptest_base

2013-09-05 Thread Qi.Chen
From: Chen Qi The do_install_ptest_base task should have cleandirs flag, just like the do_install task. The ${D}${PTEST_PATH} directory should be cleaned, Otherwise, there would be similar errors like below if the do_install_ptest_base task is rerun. ln: failed to create symbolic link `xxx':

[OE-core] [PATCH 0/2] ptest: add cleandirs flag and fix error on ubuntu host

2013-09-05 Thread Qi.Chen
From: Chen Qi The following changes since commit f41b7a7d4d0463a0dfafe6621d01680b81798019: bitbake: hob: remove PACKAGE_INSTALL variable setting from hob (2013-09-04 14:18:49 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/ptest-dash http://git

[OE-core] [PATCH 1/2] ptest.bbclass: fix error on ubuntu host

2013-09-05 Thread Qi.Chen
From: Chen Qi The do_install_ptest_base function uses 'type -t' command to check whether do_install_ptest is a function and acts correspondingly. However, the 'type' command is a shell builtin and its behavior is not all the same across Linux distros. On ubuntu, if we use #!/bin/sh as the interp

[OE-core] [PATCH 2/2] sysklogd: lower the ALTERNATIVE_PRIORITY in case of systemd

2013-09-02 Thread Qi.Chen
From: Chen Qi The sysklogd package hasn't got systemd support yet. So in case of a systemd based system, the commands and corresponding configuration files should have a lower priority than that of the busybox's syslogd and klogd utilities. These two utilities from busybox have internal systemd s

[OE-core] [PATCH 1/2] busybox-syslog: add configuration file /etc/syslog.conf

2013-09-02 Thread Qi.Chen
From: Chen Qi By default, busybox has CONFIG_FEATURE_SYSLOGD_CFG enabled, but it doesn't ship a configuration file. This patch adds a configuration file (/etc/syslog.conf) to the busybox-syslog package. This configuration file mainly serves as a placeholder now. The advantages of this change ar

[OE-core] [PATCH 0/2] busybox & sysklogd: weigh busybox's syslogd/klogd utilities over those from sysklogd in case of systemd

2013-09-02 Thread Qi.Chen
From: Chen Qi The following changes since commit c7994f83baa678a4670472e1f037bfc16cb1e3be: bitbake: runqueue: Fix scenequeue to pass file descriptors, not a float (2013-09-02 09:16:24 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/systemd-syslog

[OE-core] [PATCH 0/2] busybox & sysklogd: weigh busybox's syslogd/klogd utilities over those from sysklogd in case of systemd

2013-09-02 Thread Qi.Chen
From: Chen Qi The following changes since commit c7994f83baa678a4670472e1f037bfc16cb1e3be: bitbake: runqueue: Fix scenequeue to pass file descriptors, not a float (2013-09-02 09:16:24 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/systemd-syslog

[OE-core] [PATCH 2/2] sysklogd: lower the ALTERNATIVE_PRIORITY in case of systemd

2013-09-02 Thread Qi.Chen
From: Chen Qi The sysklogd package hasn't got systemd support yet. So in case of a systemd based system, the commands and corresponding configuration files should have a lower priority than that of the busybox's syslogd and klogd utilities. These two utilities from busybox have internal systemd s

[OE-core] [PATCH 1/2] busybox-syslog: add configuration file /etc/syslog.conf

2013-09-02 Thread Qi.Chen
From: Chen Qi By default, busybox has CONFIG_FEATURE_SYSLOGD_CFG enabled, but it doesn't ship a configuration file. This patch adds a configuration file (/etc/syslog.conf) to the busybox-syslog package. This configuration file mainly serves as a placeholder now. The advantages of this change ar

[OE-core] [PATCH 0/1] busybox: configure system user id to range from 100 to 999

2013-08-29 Thread Qi.Chen
From: Chen Qi The following changes since commit 44c3f72684c5c920ce8af1da54a2268047342589: lib/oeqa/runtime: smart: add checks for smart output (2013-08-26 16:29:18 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/busybox-system-user http://git

[OE-core] [PATCH 1/1] busybox: configure system user id to range from 100 to 999

2013-08-29 Thread Qi.Chen
From: Chen Qi Previously, the range was 0 to 0. This made it impossible to use busybox's adduser utility to add a system user. The following error would appear. adduser: no uids left This patch fixes this problem by giving it a reasonable range. Signed-off-by: Chen Qi --- meta/recipes-

[OE-core] [PATCH V2 3/3] runqemu-internal: provide more info if a preconfigured tap is used

2013-08-27 Thread Qi.Chen
From: Chen Qi We should provide the user more information if a preconfigured tap is used. This is because the user might have manually set up the tap interface to be used by other qemu binaries. So at a minimum, we should let the user know how to make runqemu skip that tap interface. [YOCTO #50

[OE-core] [PATCH V2 0/3] runqemu fixes about iptables rules and preconfigured tap

2013-08-27 Thread Qi.Chen
From: Chen Qi The following changes since commit 44c3f72684c5c920ce8af1da54a2268047342589: lib/oeqa/runtime: smart: add checks for smart output (2013-08-26 16:29:18 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/runqemu-fixes http://git.pokyli

[OE-core] [PATCH V2 1/3] runqemu-ifdown: clean up the remaining iptables rules

2013-08-27 Thread Qi.Chen
From: Chen Qi The iptables rules for the tap interface are added by runqemu-ifup everytime we use runqemu to start a qemu target. But it's not cleaned up when runqemu exits. This patch cleans up the remaining iptables rules for the tap interface in runqemu-ifdown. [YOCTO #5047] Signed-off-by:

[OE-core] [PATCH V2 2/3] runqemu-internal: don't bring down preconfigured tap interface

2013-08-27 Thread Qi.Chen
From: Chen Qi runqemu-ifup and runqemu-ifdown should be pairs. If we're using a preconfigured tap interface, the runqemu-ifdown should not be invoked to bring it down. Signed-off-by: Chen Qi --- scripts/runqemu-internal |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/

[OE-core] [PATCH 0/4] runqemu fixes about iptables rules and preconfigured tap

2013-08-27 Thread Qi.Chen
From: Chen Qi The following changes since commit 44c3f72684c5c920ce8af1da54a2268047342589: lib/oeqa/runtime: smart: add checks for smart output (2013-08-26 16:29:18 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/runqemu-fixes http://git.pokyli

[OE-core] [PATCH 3/4] runqemu-internal: change the lock acquire/release logic

2013-08-27 Thread Qi.Chen
From: Chen Qi Checking whether the lock file exists is sufficient for runqemu. The contents of the lock file is not important. This patch simplifies the lock acquire/release logic by removing the flock mechanism. Also, we give more information to user indicating why a tap interface is skipped.

[OE-core] [PATCH 1/4] runqemu-ifdown: clean up the remaining iptables rules

2013-08-27 Thread Qi.Chen
From: Chen Qi The iptables rules for the tap interface are added by runqemu-ifup everytime we use runqemu to start a qemu target. But it's not cleaned up when runqemu exits. This patch cleans up the remaining iptables rules for the tap interface in runqemu-ifdown. [YOCTO #5047] Signed-off-by:

[OE-core] [PATCH 2/4] runqemu-internal: don't bring down preconfigured tap interface

2013-08-27 Thread Qi.Chen
From: Chen Qi runqemu-ifup and runqemu-ifdown should be pairs. If we're using a preconfigured tap interface, the runqemu-ifdown should not be invoked to bring it down. Signed-off-by: Chen Qi --- scripts/runqemu-internal |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/

[OE-core] [PATCH 4/4] runqemu-internal: provide more info if a preconfigured tap is used

2013-08-27 Thread Qi.Chen
From: Chen Qi We should provide the user more information if a preconfigured tap is used. This is because the user might have manually set up the tap interface to be used by other qemu binaries. So at a minimum, we should let the user know how to make runqemu skip that tap interface. [YOCTO #50

[OE-core] [PATCH 1/2] checkroot.sh: check for conflicting configurations

2013-08-25 Thread Qi.Chen
From: Chen Qi In our current boot scripts, two ways are used to determine whether the rootfs is read-only or not. One by checking the READ_ONLY_ROOTFS value in /etc/default/rcS, the other by checking the /etc/fstab entry. >From a normal Linux user's point of view, the way of checking the /etc/fs

[OE-core] [PATCH 0/2] initscripts: read-only rootfs fixes

2013-08-25 Thread Qi.Chen
From: Chen Qi The following changes since commit b467b99a5d25efe5eadfb07dbecba608575256ac: linux-yocto: switch genericx86 to use common-pc (2013-08-24 09:37:49 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/initscripts-readonly http://git.poky

[OE-core] [PATCH 2/2] read-only-rootfs-hook.sh: check before bind mounting /var/lib

2013-08-25 Thread Qi.Chen
From: Chen Qi It's possible that /var/lib is on a separate writable partition. In such situation, we should not bind mount /var/lib with tmpfs, becasue it's already writable. This patch fixes this problem by checking whether /var/lib is already on a writable partition. [YOCTO #4888] Signed-off

[OE-core] [PATCH 2/2] init-install.sh: fix to handle the boot partition correctly

2013-08-16 Thread Qi.Chen
From: Chen Qi Previously, the boot partition was created for the target hard drive but there was no corresponding entry for it in /etc/fstab. Besides, even if the boot partition was mounted, it would just result in odd directory hierarchy like /boot/boot/grub. However, what we really need is /boo

[OE-core] [PATCH 0/2] minimal-installer: improvements and bug fixes

2013-08-16 Thread Qi.Chen
From: Chen Qi The following changes since commit a7d1241db1120a5cce91395812e2613d1eacd652: Temporary workaround with qemu images (2013-08-16 10:37:37 +0800) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/minimal-installer http://git.pokylinux.org/cgit

[OE-core] [PATCH 1/2] init-install.sh: improve hard drive searching process

2013-08-16 Thread Qi.Chen
From: Chen Qi Previously, only unremovable hard drives are searched and are treated as candidates of target disks to intall into. However, it's possible that we're going to install the live image into a removable media such as an USB. This patch enables this possibility. In addition, this patch

[OE-core] [PATCH 1/1] initscripts: remove obsolete device_table.txt

2013-08-16 Thread Qi.Chen
From: Chen Qi device_table.txt was once used by an init script named 'devices' to create the basic files under /dev. However, it's no longer used now. The devices init script has been removed, and makedevs command has been disabled by default in busybox. Besides, considering the device managers

[OE-core] [PATCH 0/1] initscripts: remove the obsolete device_table.txt

2013-08-16 Thread Qi.Chen
From: Chen Qi The following changes since commit ff10f72abda52315b892c64f711096772d9a4c1c: meta-skeleton: Add busybox config fragment example (2013-08-13 23:06:04 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/initscripts-rm-device_table http:

[OE-core] [PATCH 0/1] useradd.bbclass: add missing functions to preinst

2013-08-15 Thread Qi.Chen
From: Chen Qi The following changes since commit 16d522bcd1f1b7741577fa31fab7e2129da0cae9: maintainers.inc: reassign maintainers, remove obsolete recipes (2013-08-12 13:13:05 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/useradd-add-missing-fun

[OE-core] [PATCH 1/1] useradd.bbclass: add missing functions to preinst

2013-08-15 Thread Qi.Chen
From: Chen Qi The preinst scripts are calling bbnote, bbwarn and bbfatal functions, but these functions are not written to the preinst scripts. This patch writes these missing functions to the preinst scripts to avoid the 'not found' errors. Signed-off-by: Chen Qi --- meta/classes/useradd.bbc

[OE-core] [PATCH 1/1] opkg.inc: remove the obsolete POSTLOG variable

2013-08-13 Thread Qi.Chen
From: Chen Qi With the current implementation of postinst logging mechanism, the location for log file is configured via the POSTINST_LOGFILE variable. The POSTLOG variable is obsolete now, thus removing it. Signed-off-by: Chen Qi --- meta/recipes-devtools/opkg/opkg.inc |2 -- 1 file chan

[OE-core] [PATCH 0/1] opkg.inc: remove the obsolete POSTLOG

2013-08-13 Thread Qi.Chen
From: Chen Qi The following changes since commit 16d522bcd1f1b7741577fa31fab7e2129da0cae9: maintainers.inc: reassign maintainers, remove obsolete recipes (2013-08-12 13:13:05 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/opkg-remove-POSTLOG

[OE-core] [PATCH 0/3] makedevs: support using user/group names

2013-08-12 Thread Qi.Chen
From: Chen Qi The following changes since commit f63e7f4323368c0d6fe7a1d44393a7e15652d4f2: subversion: Add patch to use neon 0.30 (2013-08-07 07:43:47 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/makedevs http://git.pokylinux.org/cgit.cgi/pok

[OE-core] [PATCH 3/3] device_table-minimal.txt: use user/group names instead of uid/gid

2013-08-12 Thread Qi.Chen
From: Chen Qi Instead of hard coding the uid/gid, we prefer the way of using user/group names. Note the way of using uid/gid is still supported. [YOCTO #1159] Signed-off-by: Chen Qi --- meta/files/device_table-minimal.txt | 42 +-- 1 file changed, 21 inserti

[OE-core] [PATCH 1/3] makedevs: support using user/group names in device table files

2013-08-12 Thread Qi.Chen
From: Chen Qi Compared to hard coding the numeric group and user ids in the device table files, the way of using user/group names is preferred. This patch adds the ability to makedevs to correctly deal with device table files with user/group names in them. To maintain backward compatibility, th

[OE-core] [PATCH 2/3] image.bbclass: create device table after package installation

2013-08-12 Thread Qi.Chen
From: Chen Qi Now that the makedevs supports using user/group names in the devcie table files, and it uses passwd and group files under the rootfs which is provided by the base-passwd package, we should let package installation finish first, so that makedevs can get a correct mapping from user/gr

[OE-core] [PATCH 1/1] grub_0.97: Fix to correctly ship files under /usr/lib

2013-08-09 Thread Qi.Chen
From: Chen Qi The grub_fix_for_automake-1.12.patch replaced pkglib with pkgdata to make grub_0.97 build with automake-1.12. However, it forgot to set up the pkgdatadir, thus causing grub_0.97 not shipping files under /usr/lib. This in turn resulted in an unworkable grub. This patch fixes this pr

[OE-core] [PATCH 0/1] grub_0.97: Fix to correctly ship files under /usr/lib

2013-08-09 Thread Qi.Chen
From: Chen Qi The following changes since commit 70f1938e6bb4da056cbf57e6deb4f53cad8ddca1: Temporary workaround with qemu images (2013-08-09 10:51:40 +0800) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/grub_0.97-fix http://git.pokylinux.org/cgit.cgi

[OE-core] [PATCH 1/1] checkroot.sh: respect the value of ENABLE_ROOTFS_FSCK

2013-08-08 Thread Qi.Chen
From: Chen Qi Previously, fsck is always disabled because the value of rootcheck in the checkroot.sh script is always set to 'no'. We should respect the value of ENABLE_ROOTFS_FSCK in /etc/default/rcS to allow for filesystem check. Signed-off-by: Chen Qi --- .../initscripts/initscripts-1.0/ch

[OE-core] [PATCH 0/1] checkroot.sh: respect the value of ENABLE_ROOTFS_FSCK

2013-08-08 Thread Qi.Chen
From: Chen Qi The following changes since commit f63e7f4323368c0d6fe7a1d44393a7e15652d4f2: subversion: Add patch to use neon 0.30 (2013-08-07 07:43:47 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/sysv-fsck http://git.pokylinux.org/cgit.cgi/po

[OE-core] [PATCH V5 08/10] populate-volatile.sh: use 'cp -a' to avoid potential problem

2013-08-07 Thread Qi.Chen
From: Chen Qi Previously, dead links in target directory will not be copied. This is incorrect as dead links are not uncommon in our rootfs. So we use '-a' option instead. Signed-off-by: Chen Qi --- .../initscripts-1.0/populate-volatile.sh |3 ++- 1 file changed, 2 insertions(+),

[OE-core] [PATCH V5 09/10] irda-utils: fix for read-only rootfs

2013-08-07 Thread Qi.Chen
From: Chen Qi The init script for irda writes configuration items to /etc/sysconfig/irda if that file is not available in system. But it's actually not necessary, the behavior doesn't change whether the init script writes to the file or not. Considering it issues error messages in case of a read

[OE-core] [PATCH V5 06/10] runqemu-internal: fix to start X correctly in live images

2013-08-07 Thread Qi.Chen
From: Chen Qi The QEMUOPTIONS for ISOFS was not complete, leading to failures when trying to start X in live images. This patch fixes this problem. [YOCTO #4103] [YOCTO #4884] Signed-off-by: Chen Qi --- scripts/runqemu-internal |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[OE-core] [PATCH V5 10/10] openssh: fix for read-only rootfs

2013-08-07 Thread Qi.Chen
From: Chen Qi If the rootfs is read-only and the ssh keys are not available at system start-up, the init script will generate ssh keys into /etc/ssh, thus causing a 'read-only file system' error. In order for Yocto based image to work correctly for read-only rootfs, we use the following logic fo

[OE-core] [PATCH V5 07/10] initscripts: use a uniform way to handle directories in read-only rootfs

2013-08-07 Thread Qi.Chen
From: Chen Qi Packages in our system may need to write to some directories to function correctly. In read-only rootfs, these directories should be made writable. This patch uses a convenient and uniform way to handle such situations. The read-only-rootfs-hook.sh script searches the /etc/default/

[OE-core] [PATCH V5 01/10] init-live.sh: make $ROOT_MOUNT/media writable when necessary

2013-08-07 Thread Qi.Chen
From: Chen Qi If the live image is mounted as read-only, we cannot make necessary directories under $ROOT_MOUNT/media, so trying to move the mount points lead to errors. So in case that no unification filesystem mechanism is available in kernel and the rootfs is mounted as read-only, we mount tm

[OE-core] [PATCH V5 02/10] use a uniform way to determine whether rootfs is read-only

2013-08-07 Thread Qi.Chen
From: Chen Qi Previously, we had two ways to check whether the rootfs was read-only. In some part of the system, we determined whether the rootfs is read-only by checking the fstab or /proc/mounts; in other part of the system, we used the value of ROOTFS_READ_ONLY in /etc/default/rcS as a criteri

[OE-core] [PATCH V5 00/10] Make read-only rootfs work with live images

2013-08-07 Thread Qi.Chen
From: Chen Qi Changes from V4: 1. Fix the error of 'read -f' in populate-volatile.sh. The '-f' should should not be there. 2. Fix the error of missing colon in populate-volatile.sh. Changes from V3: 1. Take hidden directories and files into consideration when copying before bind mounting. 2. U

[OE-core] [PATCH V5 05/10] populate-volatile.sh: don't spawn background process at rootfs time

2013-08-07 Thread Qi.Chen
From: Chen Qi If we're building a read-only rootfs, we'll get the following error now and then. tar: .: file changed as we read it The root cause is that we spawn background process at rootfs time. When the tar command is running, it's possible that files under rootfs are changed by backgro

[OE-core] [PATCH V5 04/10] populate-volatile.sh: use $ROOT_DIR/var/volatile/tmp as TMPDIR

2013-08-07 Thread Qi.Chen
From: Chen Qi It's possible that a 'No such directory' error occurs when doing check_requirement in populate-volatile.sh at rootfs time. This is because the $ROOT_DIR/var/tmp might be a dead link. Use $ROOT_DIR/var/volatile/tmp as the TMPDIR instead to avoid this error. [YOCTO #4883] [YOCTO #41

[OE-core] [PATCH V5 03/10] udev: remove implicit dependency on initscripts

2013-08-07 Thread Qi.Chen
From: Chen Qi At some point, the udev was modified to source the functions from initscripts or lsbinitscripts. This dependency is actually not needed. If we use udev in a system where initscripts from oe-core is not available, there will be errors. This patch fixes this problem by removing the i

[OE-core] [PATCH 0/1] busybox: remove syslog-startup.conf if sysvinit not in DISTRO_FEATURES

2013-08-07 Thread Qi.Chen
From: Chen Qi The following changes since commit f63e7f4323368c0d6fe7a1d44393a7e15652d4f2: subversion: Add patch to use neon 0.30 (2013-08-07 07:43:47 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib ChenQi/busybox-systemd http://git.pokylinux.org/cgit.

[OE-core] [PATCH 1/1] busybox: remove syslog-startup.conf if sysvinit not in DISTRO_FEATURES

2013-08-07 Thread Qi.Chen
From: Chen Qi sysvinit and systemd have different ideas about configuration files (or environment files in systemd), so basically we can't use the same one in both cases. To avoid confusion, this patch removes syslog-startup.conf if 'sysvinit' is not in DISTRO_FEATURES. [YOCTO #4837] [YOCTO #48

[OE-core] [PATCH V4 08/10] populate-volatile.sh: use 'cp -a' to avoid potential problem

2013-08-07 Thread Qi.Chen
From: Chen Qi Previously, dead links in target directory will not be copied. This is incorrect as dead links are not uncommon in our rootfs. So we use '-a' option instead. Signed-off-by: Chen Qi --- .../initscripts-1.0/populate-volatile.sh |3 ++- 1 file changed, 2 insertions(+),

[OE-core] [PATCH V4 06/10] runqemu-internal: fix to start X correctly in live images

2013-08-07 Thread Qi.Chen
From: Chen Qi The QEMUOPTIONS for ISOFS was not complete, leading to failures when trying to start X in live images. This patch fixes this problem. [YOCTO #4103] [YOCTO #4884] Signed-off-by: Chen Qi --- scripts/runqemu-internal |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[OE-core] [PATCH V4 07/10] initscripts: use a uniform way to handle directories in read-only rootfs

2013-08-07 Thread Qi.Chen
From: Chen Qi Packages in our system may need to write to some directories to function correctly. In read-only rootfs, these directories should be made writable. This patch uses a convenient and uniform way to handle such situations. The read-only-rootfs-hook.sh script searches the /etc/default/

[OE-core] [PATCH V4 09/10] irda-utils: fix for read-only rootfs

2013-08-07 Thread Qi.Chen
From: Chen Qi The init script for irda writes configuration items to /etc/sysconfig/irda if that file is not available in system. But it's actually not necessary, the behavior doesn't change whether the init script writes to the file or not. Considering it issues error messages in case of a read

[OE-core] [PATCH V4 03/10] udev: remove implicit dependency on initscripts

2013-08-07 Thread Qi.Chen
From: Chen Qi At some point, the udev was modified to source the functions from initscripts or lsbinitscripts. This dependency is actually not needed. If we use udev in a system where initscripts from oe-core is not available, there will be errors. This patch fixes this problem by removing the i

[OE-core] [PATCH V4 10/10] openssh: fix for read-only rootfs

2013-08-07 Thread Qi.Chen
From: Chen Qi If the rootfs is read-only and the ssh keys are not available at system start-up, the init script will generate ssh keys into /etc/ssh, thus causing a 'read-only file system' error. In order for Yocto based image to work correctly for read-only rootfs, we use the following logic fo

[OE-core] [PATCH V4 02/10] use a uniform way to determine whether rootfs is read-only

2013-08-07 Thread Qi.Chen
From: Chen Qi Previously, we had two ways to check whether the rootfs was read-only. In some part of the system, we determined whether the rootfs is read-only by checking the fstab or /proc/mounts; in other part of the system, we used the value of ROOTFS_READ_ONLY in /etc/default/rcS as a criteri

<    1   2   3   4   5   6   >