Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HOSTNAME variable contains a dot in its name issue #1049

Closed
gdha opened this issue Oct 24, 2016 · 1 comment
Closed

HOSTNAME variable contains a dot in its name issue #1049

gdha opened this issue Oct 24, 2016 · 1 comment
Assignees
Labels
bug The code does not do what it is meant to do fixed / solved / done
Milestone

Comments

@gdha
Copy link
Member

gdha commented Oct 24, 2016

  • rear version (/usr/sbin/rear -V): 1.19
  • OS version (cat /etc/rear/os.conf or lsb_release -a): RHEL 7
  • rear configuration files (cat /etc/rear/site.conf or cat /etc/rear/local.conf): n/a
  • Brief description of the issue: when hostname contains a dot the HOSTNAME variable in rescue mode is different then in mkrescue/mkbackop mode (within rear)
  • Work-around, if any:
# hostname
client.box
# hostname -s
client
# uname -n
client.box

Internally, REAR defines a HOSTNAME as hostname -s, but REAR writes the uname -n to the rootfs/etc/HOSTNAME file. In recover mode the /etc/HOSTNAME file is used to define the HOSTNAME variable, which is not the same as initially.

As a result the /var/log/rear/rear-$HOSTNAME.log is not found.

@gdha gdha added the bug The code does not do what it is meant to do label Oct 24, 2016
@gdha gdha added this to the Rear v1.20 milestone Oct 24, 2016
@gdha gdha self-assigned this Oct 24, 2016
gdha added a commit that referenced this issue Oct 25, 2016
the scripts:
- lib/bootloader-functions.sh
- output/PXE/default/81_create_pxelinux_cfg.sh
- output/USB/Linux-i386/30_create_extlinux.sh
- rescue/GNU/Linux/95_cfg2html.sh
- rescue/default/10_hostname.sh
The 'rescue/default/10_hostname.sh' script was responsible for the hostname
mismatch in recover mode. Fix related to issue #1049
@gdha gdha modified the milestones: Rear 2.00, Rear v1.20 Nov 24, 2016
@jsmeix
Copy link
Member

jsmeix commented Nov 24, 2016

The issue is marked as "fixed"
so that I asssume it can be closed.

@jsmeix jsmeix closed this as completed Nov 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The code does not do what it is meant to do fixed / solved / done
Projects
None yet
Development

No branches or pull requests

2 participants