Ticket #6700 (closed enhancement: fixed)

Opened 7 years ago

Last modified 4 years ago

move root's home to /home/root

Reported by: hhardy Owned by: mstone
Priority: low Milestone: 10.1.2
Component: distro Version: Development build as of this date
Keywords: Cc:
Action Needed: no action Verified: no
Deployments affected: Blocked By:

Description (last modified by cscott) (diff)

It would be helpful for school administrators & "power users" if the contents of root's home directory and in particular .bash_history could be flagged such that it would not get nuked on upgrades.

hhardy originally also wrote:

It would also be helpful if the list of installed rpm packages could be maintained through an upgrade. Not necessarily the rpm's themselves but a list of the rpm's in the order they were previously installed/deinstalled so the system could be more easily restored to a similar state to what it was pre-upgrade.

This latter paragraph is #6432

Change History

Changed 6 years ago by cscott

Closely related to #6432. Root's directory could be saved by moving it to /home/root, if that is desirable.

Changed 6 years ago by gregorio

  • milestone deleted

Milestone Never Assigned deleted

Changed 6 years ago by cscott

  • next_action set to never set
  • description modified (diff)
  • summary changed from allow an option to not overwrite root's home directory on upgrade to move root's home to /home/root

Retitling and narrowing, since #6432 has been mostly addressed.

Changed 6 years ago by cscott

  • owner changed from cscott to mstone
  • next_action changed from never set to review
  • component changed from upgrade utility to distro
  • version set to Development build as of this date
  • milestone set to 9.1.0

Patch pushed to pilgrim for joyride; this is probably *not* going into 8.2.

Patch needed to olpc-utils to make sure /home/root exists after upgrade:


Reassigning to mstone.

Changed 6 years ago by cscott

Note that this move conforms to the FHS as I read it:


Since the pilgrim patch:


creates a symlink for /root, and the standard explicitly leaves it up to us where root's home directory 'really' lives.

Changed 6 years ago by erikos

I get 'No directory root' when logging into a virtual console.

Changed 6 years ago by cscott

erikos: yeah, that's why this bug is assigned to michael. The olpc-configure patch attached above would fix that.

Changed 4 years ago by dsd

  • next_action changed from review to package
  • milestone changed from 9.1.0-cancelled to 10.1.2

This is implemented in olpc-os-builder. need to add that olpc-utils patch for the 10.1.2 release.

Changed 4 years ago by dsd

  • next_action changed from package to test in build

olpc-utils-1.0.27 ready for next build

Changed 4 years ago by Quozl

  • next_action changed from test in build to diagnose

olpc-utils-1.0.27 is present in os851 on XO-1.5 and XO-1, but root shell default directory is still /root in both Terminal and text console.

Changed 4 years ago by Quozl

  • os850, the /root directory on XO-1 does not exist, one sees No directory /root'' error on text console during login.
  • os851, the /root directory on XO-1 does exist, and no error is reported.

Lacked a test case to resolve ambiguity. Ticket description says move root's home to /home/root.

Changed 4 years ago by dsd

/root is a symlink to /home/root (and has been in all builds made by olpc-os-builder), so that part of the work was effectively done ages ago.

The remaining part of the ticket was to ensure the symlink gets created on upgrades, which was brought to our attention in #10278.

So your test case is: install 8.2.1, perform olpc-update to 10.1.2 os851, and ensure /root exists as a symlink to /home/root.

Changed 4 years ago by Quozl

  • status changed from new to closed
  • next_action changed from diagnose to no action
  • resolution set to fixed

Installed 8.2.1, did olpc-update to os851, verified /root is a symlink to home/root. Closing.

Note: See TracTickets for help on using tickets.