Public bug reported:
/etc/profile, which is read by the Bourne-like shells (including ksh),
runs the scripts in /etc/profile.d. The scripts from the cloud-init
package Z99-cloudinit-warnings.sh and Z99-cloud-locale-test.sh
use the bash-builtin "local" which is not recognized by ksh resulting
in these errors at login:
/etc/profile[23]: .[141]: local: not found [No such file or directory]
/etc/profile[23]: .[142]: local: not found [No such file or directory]
/etc/profile[23]: .[143]: local: not found [No such file or directory]
/etc/profile[23]: .[178]: local: not found [No such file or directory]
/etc/profile[23]: .[179]: local: not found [No such file or directory]
$ grep -n local\ Z99*
Z99-cloudinit-warnings.sh:7: local warning="" idir="/var/lib/cloud/instance"
n=0
Z99-cloudinit-warnings.sh:8: local warndir="$idir/warnings"
Z99-cloudinit-warnings.sh:9: local ufile="$HOME/.cloud-warnings.skip"
sfile="$warndir/.skip"
Z99-cloud-locale-test.sh:14: local bad_names="" bad_lcs="" key="" val=""
var="" vars="" bad_kv=""
Z99-cloud-locale-test.sh:15: local w1 w2 w3 w4 remain
Z99-cloud-locale-test.sh:56: local bad invalid="" to_gen=""
sfile="/usr/share/i18n/SUPPORTED"
Z99-cloud-locale-test.sh:57: local pkgs=""
Z99-cloud-locale-test.sh:70: local pkgs=""
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: cloud-init 18.2-27-g6ef92c98-0ubuntu1~18.04.1
ProcVersionSignature: Ubuntu 4.15.0-29.31-generic 4.15.18
Uname: Linux 4.15.0-29-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CloudName: Other
Date: Tue Jul 31 20:04:30 2018
PackageArchitecture: all
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/ksh
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: cloud-init (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug bionic uec-images
** Description changed:
/etc/profile, which is read by the Bourne-like shells (including ksh),
runs the scripts in /etc/profile.d. The scripts from the cloud-init
package Z99-cloudinit-warnings.sh and Z99-cloud-locale-test.sh
use the bash-builtin "local" which is not recognized by ksh resulting
in these errors at login:
/etc/profile[23]: .[141]: local: not found [No such file or directory]
/etc/profile[23]: .[142]: local: not found [No such file or directory]
/etc/profile[23]: .[143]: local: not found [No such file or directory]
/etc/profile[23]: .[178]: local: not found [No such file or directory]
/etc/profile[23]: .[179]: local: not found [No such file or directory]
$ grep -n local\ Z99*
Z99-cloudinit-warnings.sh:7: local warning=""
idir="/var/lib/cloud/instance" n=0
Z99-cloudinit-warnings.sh:8: local warndir="$idir/warnings"
Z99-cloudinit-warnings.sh:9: local ufile="$HOME/.cloud-warnings.skip"
sfile="$warndir/.skip"
Z99-cloud-locale-test.sh:14: local bad_names="" bad_lcs="" key="" val=""
var="" vars="" bad_kv=""
Z99-cloud-locale-test.sh:15: local w1 w2 w3 w4 remain
Z99-cloud-locale-test.sh:56: local bad invalid="" to_gen=""
sfile="/usr/share/i18n/SUPPORTED"
Z99-cloud-locale-test.sh:57: local pkgs=""
Z99-cloud-locale-test.sh:70: local pkgs=""
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: cloud-init 18.2-27-g6ef92c98-0ubuntu1~18.04.1
ProcVersionSignature: Ubuntu 4.15.0-29.31-generic 4.15.18
Uname: Linux 4.15.0-29-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CloudName: Other
Date: Tue Jul 31 20:04:30 2018
PackageArchitecture: all
ProcEnviron:
- TERM=xterm
- PATH=(custom, no user)
- XDG_RUNTIME_DIR=<set>
- LANG=en_US.UTF-8
- SHELL=/bin/bash
+ TERM=xterm
+ PATH=(custom, no user)
+ XDG_RUNTIME_DIR=<set>
+ LANG=en_US.UTF-8
+ SHELL=/bin/ksh
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1784713
Title:
cloud-init profile.d files use bash-specific builtin "local"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1784713/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs