Opened 13 years ago
Closed 13 years ago
#620 closed defect (wontfix)
Add /bin/dash in minimal.d
Reported by: | victor gattegno | Owned by: | Bruno Cornec |
---|---|---|---|
Priority: | normal | Milestone: | 3.0.2 |
Component: | mindi | Version: | 3.0.1 |
Severity: | normal | Keywords: | |
Cc: |
Description
On Ubuntu, /bin/sh is a link to /bin/dash.
So, as was added /bin/bash in minimal.d to be able at boot to use /bin/bash in mindi (for shell-scripts).
And as there is a link between /bin/sh to /bin/bash on Ubuntu (still in Ubuntu 12.04).
I would also add /bin/dash in minimal.d file in order to avoid Ubuntu mindi shell-script problems.
Even with the addition of /bin/bash and /bin/dash in minimal.d, on my Ubuntu 12.04 mindi still creates boot image successfully with the following values, in /usr/sbin/mindi:
EXTRA_SPACE=92160
BOOT_SIZE=40960
Change History (5)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Also add in mindi, after the same section about bash:
# To improve support for distribution scripts, we now prefer to use dash as the std shell. Also fixes #600 grep -q bin/dash $MINDI_TMP/minimal.lis if [ $? -eq 0 ]; then ln -sf bin/dash bin/sh LogIt "INFO: Using dash as default shell" fi
comment:3 by , 13 years ago
But these additions to minimal.conf and to /usr/sbin/mindi should be for Ubuntu only (and maybe for Debian if on Debian /bin/sh is linked to /bin/dash too), as there is no /bin/dash in RHEL nor in SLES.
/bin/dash is back in RHEL 6, but is not used in the /sbin shell-scripts, and /bin/sh is still linked to /bin/bash (as in SLES 11).
comment:4 by , 13 years ago
It seems that Debian has also /bin/sh linked to /bin/dash (that has to be verified).
comment:5 by , 13 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
I don't think this is required on Ubuntu: Now we systematically use /bin/bash instead of /bin/sh at restore time, whatever was available on the original distribution. And mindi has a dependency on bash now in order to force its usage. Next package will force bash installation in order to avoid any restoration problem.
I wrote minimal.d file, but it's minimal.conf file.