directory $TARGET_ROOT/lost+found may not exist in some images

Bug #1245856 reported by Ivan Berezovskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
Low
Ivan Berezovskiy

Bug Description

The command "sudo rmdir $TARGET_ROOT/lost+found" in elements/rhel/root.d/10-rhel-cloud-image, elements/fedora/root.d/10-fedora-cloud-image, elements/ubuntu/root.d/10-cache-ubuntu-tarball can be failed if directory '$TARGET_ROOT/lost+found' doesn't exist. This problem may arise if you use any non-default image.
I think we should add check of existence of this directory.

Changed in diskimage-builder:
assignee: nobody → IvanBerezovskiy (iberezovskiy)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to diskimage-builder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/54311

Changed in diskimage-builder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

Reviewed: https://review.openstack.org/54311
Committed: http://github.com/openstack/diskimage-builder/commit/f23babe971f08a347d807f8264471b12f7f1c3ef
Submitter: Jenkins
Branch: master

commit f23babe971f08a347d807f8264471b12f7f1c3ef
Author: iberezovskiy <email address hidden>
Date: Tue Oct 29 15:36:07 2013 +0400

    Check existence of directory 'lost+found'

    The command `sudo rmdir $TARGET_ROOT/lost+found` will fail
    if `$TARGET_ROOT/lost+found` directory doesn't exist,
    e.g. when you use non-default image.

    Fixes bug #1245856

    Change-Id: I48c8f2f201b29912a726249023ca7d20893cc958

Changed in diskimage-builder:
status: In Progress → Fix Committed
Changed in diskimage-builder:
importance: Undecided → Low
Changed in diskimage-builder:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.