Skip to content

rmdir: failed to remove '..../stage0/rootfs/debootstrap': Directory not empty #338

@DominoX

Description

@DominoX

Hi guys,

First try today with pi-gen. Didn't go well, but I'm real new to this so guessing I'm just doing something silly.

When running sudo ./build.sh, it spends about 6 minutes in the loop of 'Retrieving ...' followed by 'Validating ...' various files/packages, and then it dies with the error

rmdir: failed to remove '/home/pi/pi-gen/pi-gen/work/2019-10-26-Raspbian/stage0/rootfs/debootstrap': Directory not empty

MY SETUP:
--- Brand new RasPi 4 (4G version)
--- 32GB microSD
--- Latest Buster 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019
--- No other packages installed other than the prerequisites for pi-gen as per GIT home page

STEPS TO REPRODUCE:
--- SSH into raspi (default pi user, so default pwd)
--- git clone https://github.com/RPi-Distro/pi-gen.git
--- That creates a 'pi-gen' folder, so I cd to it
--- sudo ./build.sh
--- roughly 6 minutes retrieving/validating, then error

The ONLY line I have in my 'config' file is:
IMG_NAME='Raspbian'

Any advice on how I can troubleshoot this, or next step, much appreciated!!!

Dave

[EDIT] Reading further, I think this might be related to #294 The retrieving/validating steps in the screenshot there are idenical to mine, but my script quits immediately after displaying the rmdir error after the last retrieving/validating message ... wheras the script in that screenshot continues to run. WTF???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions