Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] Use one call to mkdir to create needed directories.
@ 2018-06-05 12:36 Florian La Roche
  2018-06-05 13:06 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Florian La Roche @ 2018-06-05 12:36 UTC (permalink / raw)
  To: buildroot

Reduce this to only call mkdir once to create the needed directories.


Signed-off-by: Florian La Roche <F.LaRoche@pilz.de>
---
 package/busybox/inittab | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/package/busybox/inittab b/package/busybox/inittab
index ef58c32f0d..7cd203de0b 100644
--- a/package/busybox/inittab
+++ b/package/busybox/inittab
@@ -16,8 +16,7 @@
 # Startup the system
 ::sysinit:/bin/mount -t proc proc /proc
 ::sysinit:/bin/mount -o remount,rw /
-::sysinit:/bin/mkdir -p /dev/pts
-::sysinit:/bin/mkdir -p /dev/shm
+::sysinit:/bin/mkdir -p /dev/pts /dev/shm
 ::sysinit:/bin/mount -a
 null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd
 null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin
-- 
2.17.0

Gesch?ftsf?hrung: Susanne Kunschert, Thomas Pilz
Pilz GmbH & Co. KG, Sitz: Ostfildern, HRA 210 893, Amtsgericht Stuttgart
Kompl. Ges. Peter Pilz GmbH, Sitz: Ostfildern, HRB 210 612, Amtsgericht Stuttgart
Umsatzsteuer: ID-Nr. DE 145 355 773, WEEE-Reg.-Nr. DE 71636849
This email is intended solely for the use of the named address(es). Any unauthorised disclosure, copying or distribution of these confidential information contained therein, or the taking of any action based on it, is prohibited. The sender disclaims any liability for the integrity of this email. Legally binding declarations must be in written form.
Umweltschutz liegt uns am Herzen! - Bitte denken Sie an unsere Umwelt, bevor Sie diese E-Mail drucken.
We do care about the environment! - Please consider the environment before printing this e-mail.

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

* [Buildroot] [PATCH 1/1] Use one call to mkdir to create needed directories.
  2018-06-05 12:36 [Buildroot] [PATCH 1/1] Use one call to mkdir to create needed directories Florian La Roche
@ 2018-06-05 13:06 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-06-05 13:06 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 5 Jun 2018 14:36:11 +0200, Florian La Roche wrote:
> Reduce this to only call mkdir once to create the needed directories.
> 
> 
> Signed-off-by: Florian La Roche <F.LaRoche@pilz.de>

Thanks for all your patches. Generally they look good to me in terms of
contents, but there are a few minor formatting issues that would make
them better:

 - The commit title should include a prefix of the package being
   impacted.

 - The commit title should often be a bit shorter.

 - The commit log should contain only one empty line before the SoB
   line, not two empty lines.

 - A non empty commit log would be better, to give additional
   explanations when necessary.

For this patch, a better commit log would for example be:

busybox: reduce number of mkdir calls in inittab

The default Busybox inittab does two separate mkdir calls to
create /dev/pts and /dev/shm, which is not necessary. Let's refactor
those two calls into a single one.

Signed-off-by: ...

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

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

end of thread, other threads:[~2018-06-05 13:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-05 12:36 [Buildroot] [PATCH 1/1] Use one call to mkdir to create needed directories Florian La Roche
2018-06-05 13:06 ` Thomas Petazzoni

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