bsp-rootfs-custom
Skill5 starsChanged 3 months agoApache-2.0View on GitHub
Make and customize the RDK Ubuntu root filesystem — samplefs/make_ubuntu_rootfs.sh (desktop/server), debootstrap/chroot tooling, the package-list variables (BASE/DESKTOP/SERVER_PACKAGE_LIST…), and hobot_customize_rootfs.sh for users/services. Use when the user wants to build a custom samplefs, add/remove preinstalled apt or python packages, or create users/autostart entries in the image. 触发词:根文件系统、rootfs、samplefs、debootstrap、定制系统、预装软件包、创建用户、自启动. Do not use for whole-image builds (bsp-image-build) or S-series (bsp-s-series).
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- D-Robotics/dsh-plugin-rdkedited, first seen Aug 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- D-Robotics/dsh-plugin-rdk★ 192% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository42 other files it gives its agents.
- bsp-bootloader-buildSkill
- bsp-deb-buildSkill
- bsp-env-setupSkill
- bsp-image-buildSkill
- bsp-kernel-buildSkill
- bsp-source-syncSkill
- bsp-s-seriesSkill
- cmos-sensor-bringupSkill
- rdk-accessoriesSkill
- rdk-board-delegateSkill
- rdk-board-knowledgeSkill
- rdk-camera-setupSkill
- rdk-command-manualSkill
- rdk-diagnosticSkill
- rdk-docs-referenceSkill
- rdk-ecosystemSkill
- rdk-embodied-lerobotSkill
- rdk-gpio-40pinSkill
- rdk-hardwareSkill
- rdk-headless-modeSkill
- rdk-llm-deploymentSkill
- rdk-log-forensicsSkill
- rdk-memory-auditSkill
- rdk-model-benchmarkSkill
- rdk-model-deploySkill
- rdk-model-zoo-developSkill
- rdk-model-zoo-integrateSkill
- rdk-model-zoo-releaseSkill
- rdk-model-zoo-repoSkill
- rdk-model-zoo-reviewSkill
- rdk-model-zooSkill
- rdk-model-zoo-validateSkill
- rdk-multimediaSkill
- rdk-network-remoteSkill
- rdk-pack-installerSkill
- rdk-peripheral-cookbookSkill
- rdk-skill-finderSkill
- rdk-source-mapSkill
- rdk-system-configSkill
- rdk-system-maintainSkill
- rdk-tros-setupSkill
- rdk-vision-pipelineSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 25
Do not use for the full image pipeline or S-series.
- Distinctive: line 33
After recording the backup location and the user approves generation, create the Ubuntu root filesystem:
- Distinctive: line 59
Never hand-edit files inside the generated rootfs to "fix" a build — change the source scripts instead, so images stay reproducible.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Ubuntu Rootfs Customization
Purpose
Build and customize the Ubuntu root filesystem that system images are assembled from. Two levels of customization exist: generating a fresh samplefs with make_ubuntu_rootfs.sh, and per-image tweaks via hobot_customize_rootfs.sh (users, services).
When to use
Use when:
- The user wants a custom samplefs (desktop or server) with different preinstalled packages
- Adding users or enabling/disabling autostart services in the image
- Explaining what debootstrap/chroot do in this flow
Do not use for the full image pipeline or S-series.
Instructions
- Define the reversible change before commands. Collect the base rootfs, X3/X5 board and desktop/server image variant, exact package/file list, backup location, and size objective. For ambiguous deletion requests, first list the candidate targets and request confirmation; do not issue
rmor mutate package lists yet. Changedhobot-*source packages belong tobsp-deb-build, not this workflow. - Prerequisites:
bsp-env-setup; for the full samplefs host dependency list (debootstrap, parted, qemu-user-static, …) quote the source README's「环境配置」package list instead of abbreviating it. - After recording the backup location and the user approves generation, create the Ubuntu root filesystem:
Outputs (X5):cd samplefs chmod +x make_ubuntu_rootfs.sh sudo ./make_ubuntu_rootfs.sh # desktop (default) sudo ./make_ubuntu_rootfs.sh server # server editiondesktop/jammy-rdk-arm64,desktop/samplefs_desktop_jammy-v3.0.0.tar.gz,…tar.gz.info(installed apt list). Outputs (X3 legacy):desktop/jammy-xj3-arm64,samplefs_desktop-v3.0.0.tar.gz,…info. - Customize the package set via the documented variables in the make script:
PYTHON_PACKAGE_LIST— python packages to installDEBOOTSTRAP_LIST— debootstrap-time debian packagesBASE_PACKAGE_LIST— minimal Ubuntu base packagesSERVER_PACKAGE_LIST— extras for the server editionDESKTOP_PACKAGE_LIST— packages for the graphical desktop The officialsamplefs_desktopincludes all of these; users edit the lists to add/remove.
- Before removal, run the documented package-list or file listing as a dry run, show the exact targets and expected size effect, back up the source list/rootfs location, then obtain confirmation before mutation. Per-image system customization runs automatically during
pack_image.shviahobot_customize_rootfs.sh— creating users and enabling/disabling autostart entries. For changes here, point the user to that script and explain the image build step re-runs it. - Tooling background (brief):
debootstrapbuilds a minimal Debian/Ubuntu system tree;chrootre-roots into it;partedhandles image partitioning. Give exact commands only from the README.
Safety
- Samplefs generation needs sudo and significant disk; confirm before running.
- Package list edits change what every subsequent image contains — back up, show the dry-run/list and diff, then get confirmation.
- Never hand-edit files inside the generated rootfs to "fix" a build — change the source scripts instead, so images stay reproducible.
Sources:
x5-rdk-genREADME v3.5.0「Ubuntu 文件系统制作」;rdk-genREADME v3.0.3「制作 Ubuntu 文件系统」。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

