alpha
Login
or
Join now
tombl.dev
/
distro
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
initramfs: boot to busybox sh
author
Thomas Stokes
date
1 year ago
(Apr 14, 2025, 11:12 PM +0800)
commit
7a2da415
7a2da415bd19626b2c469212832150392eba71f2
parent
c00323ea
c00323ea68b728609a372df8fa88d402b659cd8e
+7
-3
1 changed file
Expand all
Collapse all
Unified
Split
packages
initramfs
package.nix
+7
-3
packages/initramfs/package.nix
Reviewed
···
1
1
{
2
2
run,
3
3
-
basic-init,
3
3
+
busybox,
4
4
}:
5
5
6
6
run { name = "initramfs.cpio"; } ''
7
7
-
mkdir root
8
8
-
cp ${basic-init}/bin/init root/init
7
7
+
mkdir -p root/bin
8
8
+
cp ${busybox}/bin/busybox root/bin/sh
9
9
+
10
10
+
echo '#!/bin/sh' > root/init
11
11
+
echo 'exec /bin/sh' >> root/init
12
12
+
chmod +x root/init
9
13
10
14
cd root
11
15
find . | cpio -H newc -o > $out