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

Missing /tmp after recovery (ubuntu with one big /) #1581

Closed
gdha opened this issue Nov 17, 2017 · 3 comments
Closed

Missing /tmp after recovery (ubuntu with one big /) #1581

gdha opened this issue Nov 17, 2017 · 3 comments
Assignees
Labels
fixed / solved / done minor bug An alternative or workaround exists
Milestone

Comments

@gdha
Copy link
Member

gdha commented Nov 17, 2017

  • rear version (/usr/sbin/rear -V): 2.2
  • OS version (cat /etc/rear/os.conf or lsb_release -a): ubuntu 16.04
  • rear configuration files (cat /etc/rear/site.conf or cat /etc/rear/local.conf): BACKUP=BAREOS
  • Are you using legacy BIOS or UEFI boot? BIOS
  • Brief description of the issue: after recovery mkinitrd failed due to missing /tmp directory
  • Work-around, if any:
    Edit script /usr/share/rear/prep/default/400_save_mountpoint_details.sh and as last line add:
echo "tmp 1777 root root" >> "$VAR_DIR/recovery/mountpoint_permissions"

See also 2ebe65e

Perhaps it would be enough to change the default entry in conf/default.conf from (for ReaR 2.3):

DIRECTORY_ENTRIES_TO_RECOVER=( )
to
DIRECTORY_ENTRIES_TO_RECOVER=( '/tmp 1777 root root' )

Thoughts?

@gdha gdha added the minor bug An alternative or workaround exists label Nov 17, 2017
@gdha gdha added this to the ReaR v2.3 milestone Nov 17, 2017
@gdha gdha assigned gdha and jsmeix Nov 17, 2017
@jsmeix
Copy link
Member

jsmeix commented Nov 17, 2017

Any missing standard FHS directory is unexpeced because in
prep/default/400_save_directories.sh
I intentionally implemented (at least I tried to)
that all standard FHS directories are always recreated.

@gdha
could you inspect your "rear mkrescue" and "rear recover" logs
why the standard FHS directory 'tmp' is not automatically
recreated in this case.

@gdha
Copy link
Member Author

gdha commented Nov 17, 2017

@jsmeix Fair enough - for ReaR 2.3 it is fixed then (via prep/default/400_save_directories.sh), but the script was different in rear-2.2.
But, the work-around I gave is good enough for now. Thanks for the feedback and I will close it again

@jsmeix
Copy link
Member

jsmeix commented Nov 17, 2017

@gdha
if you find the time I would appreciate it
if you could verify that it is really fixed
with current ReaR master code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed / solved / done minor bug An alternative or workaround exists
Projects
None yet
Development

No branches or pull requests

2 participants