cloud-init profile.d files use bash-specific builtin "local"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Low
|
Scott Moser | ||
cloud-init (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
/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-
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-
Z99-cloudinit-
Z99-cloudinit-
Z99-cloud-
Z99-cloud-
Z99-cloud-
Z99-cloud-
Z99-cloud-
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: cloud-init 18.2-27-
ProcVersionSign
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
PackageArchitec
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/ksh
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Scott Moser: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 799 lines (+496/-39)14 files modifiedbash_completion/cloud-init (+5/-2)
cloudinit/cmd/devel/net_convert.py (+23/-12)
cloudinit/cmd/devel/parser.py (+13/-7)
cloudinit/net/eni.py (+9/-2)
cloudinit/net/netplan.py (+4/-0)
cloudinit/sources/DataSourceOpenNebula.py (+1/-1)
config/cloud.cfg.tmpl (+0/-2)
debian/changelog (+14/-0)
doc/rtd/topics/debugging.rst (+1/-1)
tests/unittests/test_cli.py (+1/-2)
tests/unittests/test_datasource/test_opennebula.py (+406/-2)
tests/unittests/test_net.py (+6/-0)
tools/Z99-cloud-locale-test.sh (+8/-5)
tools/Z99-cloudinit-warnings.sh (+5/-3)
- Chad Smith: Approve
- Server Team CI bot: Approve (continuous-integration)
- Merlie Allen: Pending requested
-
Diff: 57 lines (+13/-8)2 files modifiedtools/Z99-cloud-locale-test.sh (+8/-5)
tools/Z99-cloudinit-warnings.sh (+5/-3)
Changed in cloud-init (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in cloud-init: | |
assignee: | nobody → Scott Moser (smoser) |
importance: | Undecided → Low |
status: | New → Fix Committed |
Changed in cloud-init (Ubuntu): | |
status: | Confirmed → Fix Released |
Can you test if this works?
http:// paste.ubuntu. com/p/wyPPhjRRz P/