Opened 9 years ago

Closed 7 years ago

Last modified 20 months ago

#6700 closed enhancement (fixed)

move root's home to /home/root

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

Description (last modified by cscott)

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 (14)

comment:1 Changed 9 years ago by cscott

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

comment:2 Changed 9 years ago by gregorio

  • Milestone Never Assigned deleted

Milestone Never Assigned deleted

comment:3 Changed 9 years ago by cscott

  • Action Needed 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.

comment:4 Changed 9 years ago by cscott

  • Action Needed changed from never set to review
  • Component changed from upgrade utility to distro
  • Milestone set to 9.1.0
  • Owner changed from cscott to mstone
  • Version set to Development build as of this date

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:;a=commitdiff;h=6176834f825e682a88fc0e3796b4fdb08e3a0a6c

Reassigning to mstone.

comment:5 Changed 9 years ago by cscott

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

Since the pilgrim patch:;a=commitdiff;h=cc3bf640473157ea45104d60ffb604a30e08d5cf

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

comment:6 Changed 9 years ago by erikos

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

comment:7 Changed 9 years ago by cscott

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

comment:8 Changed 7 years ago by dsd

  • Action Needed 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.

comment:9 Changed 7 years ago by dsd

  • Action Needed changed from package to test in build

olpc-utils-1.0.27 ready for next build

comment:10 Changed 7 years ago by Quozl

  • Action Needed 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.

comment:11 Changed 7 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.

comment:12 Changed 7 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.

comment:13 Changed 7 years ago by Quozl

  • Action Needed changed from diagnose to no action
  • Resolution set to fixed
  • Status changed from new to closed

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

comment:14 Changed 20 months ago by Quozl

  • Milestone 10.1.2 deleted

Milestone 10.1.2 deleted

Note: See TracTickets for help on using tickets.