public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Cleanup of the configscripts
@ 2018-04-11 10:36 claudius.heine.ext
  2018-04-11 10:36 ` [PATCH v2 1/2] meta-isar/isar-image-base: remove uncesessary cmd lines from cfg scripts claudius.heine.ext
  2018-04-11 10:36 ` [PATCH v2 2/2] meta-isar/raspbian-configscript: added removal of qemu-arm-static claudius.heine.ext
  0 siblings, 2 replies; 5+ messages in thread
From: claudius.heine.ext @ 2018-04-11 10:36 UTC (permalink / raw)
  To: isar-users; +Cc: Claudius Heine

From: Claudius Heine <ch@denx.de>

Hi,

Henning made aware that the qemu-arm-static binary is not removed from
the raspbian image. So I added a command to the raspbian-configscript.

regards,
Claudius

Changes on v1:
  - Added removal of qemu-arm-static command to raspbian-configscript.sh

Claudius Heine (2):
  meta-isar/isar-image-base: remove uncesessary cmd lines from cfg
    scripts
  meta-isar/raspbian-configscript: added removal of qemu-arm-static

 .../images/files/debian-configscript.sh            | 26 ----------------
 .../images/files/raspbian-configscript.sh          | 36 ++++------------------
 2 files changed, 6 insertions(+), 56 deletions(-)

-- 
2.16.3


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2 1/2] meta-isar/isar-image-base: remove uncesessary cmd lines from cfg scripts
  2018-04-11 10:36 [PATCH v2 0/2] Cleanup of the configscripts claudius.heine.ext
@ 2018-04-11 10:36 ` claudius.heine.ext
  2018-04-11 10:36 ` [PATCH v2 2/2] meta-isar/raspbian-configscript: added removal of qemu-arm-static claudius.heine.ext
  1 sibling, 0 replies; 5+ messages in thread
From: claudius.heine.ext @ 2018-04-11 10:36 UTC (permalink / raw)
  To: isar-users; +Cc: Claudius Heine

From: Claudius Heine <ch@denx.de>

Since we changed to use debootstrap and apt for the installation of
every package, additional runs of 'dpkg configure' and postinst scripts
are no longer necessary.

This removes also the defunct revert of the 'deamon disable steps' used
with the multistrap version of isar and the setting of the root
password, since that should be done in a postinst step of a package
instead.

Signed-off-by: Claudius Heine <ch@denx.de>
---
 .../images/files/debian-configscript.sh            | 26 -----------------
 .../images/files/raspbian-configscript.sh          | 33 ++--------------------
 2 files changed, 3 insertions(+), 56 deletions(-)

diff --git a/meta-isar/recipes-core/images/files/debian-configscript.sh b/meta-isar/recipes-core/images/files/debian-configscript.sh
index f2fa2d9..042b530 100755
--- a/meta-isar/recipes-core/images/files/debian-configscript.sh
+++ b/meta-isar/recipes-core/images/files/debian-configscript.sh
@@ -37,19 +37,6 @@ locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8
 locales locales/default_environment_locale select en_US.UTF-8
 END
 
-# Set up non-interactive configuration
-export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
-export LC_ALL=C LANGUAGE=C LANG=C
-
-# Run pre installation script
-/var/lib/dpkg/info/dash.preinst install
-
-# Configuring packages
-dpkg --configure -a
-
-# set the root password if that has not been done before
-grep "root:\*:" /etc/shadow && echo "root:root" | chpasswd
-
 cat > /etc/fstab << EOF
 # Begin /etc/fstab
 /dev/$ROOTFS_DEV	/		$ROOTFS_TYPE		defaults		1	1
@@ -76,16 +63,3 @@ fi
 # Purge unused locale and installed packages' .deb files
 localepurge
 apt-get clean
-
-# Undo setup script changes
-if [ -x "$TARGET/sbin/start-stop-daemon.REAL" ]; then
-    mv -f $TARGET/sbin/start-stop-daemon.REAL $TARGET/sbin/start-stop-daemon
-fi
-
-if [ -x "$TARGET/sbin/initctl.REAL" ]; then
-    mv $TARGET/sbin/initctl.REAL $TARGET/sbin/initctl
-fi
-
-if [ -x "$TARGET/sbin/init" -a -x "$TARGET/usr/sbin/policy-rc.d" ]; then
-    rm -f $TARGET/usr/sbin/policy-rc.d
-fi
diff --git a/meta-isar/recipes-core/images/files/raspbian-configscript.sh b/meta-isar/recipes-core/images/files/raspbian-configscript.sh
index 1a85c40..ec05a6b 100644
--- a/meta-isar/recipes-core/images/files/raspbian-configscript.sh
+++ b/meta-isar/recipes-core/images/files/raspbian-configscript.sh
@@ -37,23 +37,6 @@ locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8
 locales locales/default_environment_locale select en_US.UTF-8
 END
 
-# Set up non-interactive configuration
-export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
-export LC_ALL=C LANGUAGE=C LANG=C
-
-# Run pre installation scripts
-/var/lib/dpkg/info/dash.preinst install
-
-# Prevent removing of boot firmware
-/var/lib/dpkg/info/raspberrypi-bootloader-nokernel.preinst install
-rm /var/lib/dpkg/info/raspberrypi-bootloader-nokernel.postinst
-
-# Configuring packages
-dpkg --configure -a
-
-# set the root password if that has not been done before
-grep "root:\*:" /etc/shadow && echo "root:root" | chpasswd
-
 cat > /etc/fstab << EOF
 # Begin /etc/fstab
 /dev/$ROOTFS_DEV	/		$ROOTFS_TYPE		defaults		1	1
@@ -72,21 +55,11 @@ if [ -f /etc/inittab ]; then
         >> /etc/inittab
 fi
 
-# Undo setup script changes
-if [ -x "$TARGET/sbin/start-stop-daemon.REAL" ]; then
-    mv -f $TARGET/sbin/start-stop-daemon.REAL $TARGET/sbin/start-stop-daemon
-fi
-
-if [ -x "$TARGET/sbin/initctl.REAL" ]; then
-    mv $TARGET/sbin/initctl.REAL $TARGET/sbin/initctl
-fi
-
-if [ -x "$TARGET/sbin/init" -a -x "$TARGET/usr/sbin/policy-rc.d" ]; then
-    rm -f $TARGET/usr/sbin/policy-rc.d
-fi
-
 KERNEL_IMAGE=`ls /boot | grep vmlinuz`
 
 cat > /boot/config.txt << EOF
 kernel=$KERNEL_IMAGE
 EOF
+
+localepurge
+apt-get clean
-- 
2.16.3


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2 2/2] meta-isar/raspbian-configscript: added removal of qemu-arm-static
  2018-04-11 10:36 [PATCH v2 0/2] Cleanup of the configscripts claudius.heine.ext
  2018-04-11 10:36 ` [PATCH v2 1/2] meta-isar/isar-image-base: remove uncesessary cmd lines from cfg scripts claudius.heine.ext
@ 2018-04-11 10:36 ` claudius.heine.ext
  2018-04-11 16:21   ` Jan Kiszka
  1 sibling, 1 reply; 5+ messages in thread
From: claudius.heine.ext @ 2018-04-11 10:36 UTC (permalink / raw)
  To: isar-users; +Cc: Claudius Heine

From: Claudius Heine <ch@denx.de>

After the image has finished building, the qemu-arm-static binary can be
removed because its no longer needed.

Reported-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: Claudius Heine <ch@denx.de>
---
 meta-isar/recipes-core/images/files/raspbian-configscript.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-isar/recipes-core/images/files/raspbian-configscript.sh b/meta-isar/recipes-core/images/files/raspbian-configscript.sh
index ec05a6b..d7bdc07 100644
--- a/meta-isar/recipes-core/images/files/raspbian-configscript.sh
+++ b/meta-isar/recipes-core/images/files/raspbian-configscript.sh
@@ -63,3 +63,6 @@ EOF
 
 localepurge
 apt-get clean
+
+# Remove qemu-*-static:
+find /usr/bin -maxdepth 1 -name 'qemu-*-static' -delete
-- 
2.16.3


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 2/2] meta-isar/raspbian-configscript: added removal of qemu-arm-static
  2018-04-11 10:36 ` [PATCH v2 2/2] meta-isar/raspbian-configscript: added removal of qemu-arm-static claudius.heine.ext
@ 2018-04-11 16:21   ` Jan Kiszka
  2018-04-11 20:29     ` Claudius Heine
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2018-04-11 16:21 UTC (permalink / raw)
  To: [ext] claudius.heine.ext@siemens.com, isar-users; +Cc: Claudius Heine

On 2018-04-11 12:36, [ext] claudius.heine.ext@siemens.com wrote:
> From: Claudius Heine <ch@denx.de>
> 
> After the image has finished building, the qemu-arm-static binary can be
> removed because its no longer needed.
> 
> Reported-by: Henning Schild <henning.schild@siemens.com>
> Signed-off-by: Claudius Heine <ch@denx.de>
> ---
>  meta-isar/recipes-core/images/files/raspbian-configscript.sh | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/meta-isar/recipes-core/images/files/raspbian-configscript.sh b/meta-isar/recipes-core/images/files/raspbian-configscript.sh
> index ec05a6b..d7bdc07 100644
> --- a/meta-isar/recipes-core/images/files/raspbian-configscript.sh
> +++ b/meta-isar/recipes-core/images/files/raspbian-configscript.sh
> @@ -63,3 +63,6 @@ EOF
>  
>  localepurge
>  apt-get clean
> +
> +# Remove qemu-*-static:
> +find /usr/bin -maxdepth 1 -name 'qemu-*-static' -delete
> 

And what cleans this up in the other, non-raspbian images?

Jan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 2/2] meta-isar/raspbian-configscript: added removal of qemu-arm-static
  2018-04-11 16:21   ` Jan Kiszka
@ 2018-04-11 20:29     ` Claudius Heine
  0 siblings, 0 replies; 5+ messages in thread
From: Claudius Heine @ 2018-04-11 20:29 UTC (permalink / raw)
  To: Jan Kiszka, [ext] claudius.heine.ext@siemens.com, isar-users

[-- Attachment #1: Type: text/plain, Size: 1561 bytes --]

Hi Jan,

On Wed, 2018-04-11 at 18:21 +0200, Jan Kiszka wrote:
> On 2018-04-11 12:36, [ext] claudius.heine.ext@siemens.com wrote:
> > From: Claudius Heine <ch@denx.de>
> > 
> > After the image has finished building, the qemu-arm-static binary
> > can be
> > removed because its no longer needed.
> > 
> > Reported-by: Henning Schild <henning.schild@siemens.com>
> > Signed-off-by: Claudius Heine <ch@denx.de>
> > ---
> >  meta-isar/recipes-core/images/files/raspbian-configscript.sh | 3
> > +++
> >  1 file changed, 3 insertions(+)
> > 
> > diff --git a/meta-isar/recipes-core/images/files/raspbian-
> > configscript.sh b/meta-isar/recipes-core/images/files/raspbian-
> > configscript.sh
> > index ec05a6b..d7bdc07 100644
> > --- a/meta-isar/recipes-core/images/files/raspbian-configscript.sh
> > +++ b/meta-isar/recipes-core/images/files/raspbian-configscript.sh
> > @@ -63,3 +63,6 @@ EOF
> >  
> >  localepurge
> >  apt-get clean
> > +
> > +# Remove qemu-*-static:
> > +find /usr/bin -maxdepth 1 -name 'qemu-*-static' -delete
> > 
> 
> And what cleans this up in the other, non-raspbian images?

Yes, you are right. Forgot about quemuarm.

regards,
Claudius

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de

            PGP key: 6FF2 E59F 00C6 BC28 31D8 64C1 1173 CB19 9808 B153
                              Keyserver: hkp://pool.sks-keyservers.net

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-04-11 20:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-11 10:36 [PATCH v2 0/2] Cleanup of the configscripts claudius.heine.ext
2018-04-11 10:36 ` [PATCH v2 1/2] meta-isar/isar-image-base: remove uncesessary cmd lines from cfg scripts claudius.heine.ext
2018-04-11 10:36 ` [PATCH v2 2/2] meta-isar/raspbian-configscript: added removal of qemu-arm-static claudius.heine.ext
2018-04-11 16:21   ` Jan Kiszka
2018-04-11 20:29     ` Claudius Heine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox