1. merge three apt-get install cmds into one 2. add -qq for apt-get install, -qq means no output except for errors, so we can remove ">/dev/null 2>&1".
Signed-off-by: Xu Xijian hdxuxijian@163.com --- container/dracut-initrd/bin/setup-dracut.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/container/dracut-initrd/bin/setup-dracut.sh b/container/dracut-initrd/bin/setup-dracut.sh index 75148a1..f7119ec 100755 --- a/container/dracut-initrd/bin/setup-dracut.sh +++ b/container/dracut-initrd/bin/setup-dracut.sh @@ -5,9 +5,9 @@ export DEBIAN_FRONTEND=noninteractive
apt-get update -apt-get install -y --fix-missing --no-install-recommends apt-utils >/dev/null 2>&1 -apt-get install -y --fix-missing nfs-common netbase cifs-utils kmod rsync -apt-get install -y --fix-missing dracut dracut-network dracut-config-generic +apt-get install -y --fix-missing --no-install-recommends -qq apt-utils \ +nfs-common netbase cifs-utils kmod rsync dracut dracut-network \ +dracut-config-generic
apt-get clean rm -rf /var/lib/apt/lists/*