openwrt / openwrt/packages

schroot: Chroot setup failed: stage=setup-start

Open
#23,733 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Maintainer: @jmarcet @ptpt52 @neheb
Environment: OpenWrt 23.05.2 on Arm64 (Raspberry Pi 4B)

Description: Unable to start schroot environment: Chroot setup failed: stage=setup-start

  1. Create chroot with debootstrap --no-check-gpg --arch=arm64 bullseye /srv/chroot/debian
  2. Create file in /etc/schroot/chroot.d
[debian]
description=Debian environment
directory=/srv/chroot/debian
aliases=bullseye
type=directory
users=root
groups=root
root-groups=root
  1. Start with schroot -c debian
E: 20copyfiles: /etc/schroot/setup.d/20copyfiles: line 42: /bin/stat: not found
E: 70services: /etc/schroot/setup.d/70services: line 48: tac: not found
E: debian-1711263744-18335: Chroot setup failed: stage=setup-start

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the documented debootstrap and schroot commands on OpenWrt 23.05.2 for Arm64. Inspect /etc/schroot/setup.d/20copyfiles and /etc/schroot/setup.d/70services, especially the reported missing /bin/stat and tac commands. Done means the Debian chroot starts without a setup-start error.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.