mirror of
https://github.com/vale981/archiso-bcachefs
synced 2025-03-04 17:11:39 -05:00
readme and permission
This commit is contained in:
parent
7dc4d7e629
commit
56f910b5d1
4 changed files with 35 additions and 1 deletions
3
docker-setup.sh
Normal file → Executable file
3
docker-setup.sh
Normal file → Executable file
|
@ -1,8 +1,9 @@
|
|||
#!/bin/bash
|
||||
cd $DIR
|
||||
|
||||
docker run \
|
||||
-i \
|
||||
--rm --privileged=true \
|
||||
--name archiso \
|
||||
--mount type=bind,source="$(pwd)",target=/archiso \
|
||||
--mount type=bind,source="$DIR",target=/archiso \
|
||||
archlinux:latest bash < ./in_docker.sh
|
||||
|
|
0
in_docker.sh
Normal file → Executable file
0
in_docker.sh
Normal file → Executable file
1
make_iso.sh
Normal file → Executable file
1
make_iso.sh
Normal file → Executable file
|
@ -3,6 +3,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|||
cd $DIR
|
||||
|
||||
ARCH=x86_64
|
||||
KERNEL_ARCH=
|
||||
REPO_DIR=$DIR/repo/$ARCH
|
||||
REPO=$REPO_DIR/repo.db.tar.gz
|
||||
PACKAGE_DIR=$DIR/packages
|
||||
|
|
32
readme.md
Normal file
32
readme.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Archlinux Live with Bcachefs
|
||||
|
||||
The scripts in this repo can be used to obtain an `Arch Linux`
|
||||
live/install/rescue ISO. This is realized through
|
||||
[Archiso](https://wiki.archlinux.org/index.php/Archiso) with some
|
||||
hacks to make it use the `linux-bcachefs-git` [from the
|
||||
AUR](https://aur.archlinux.org/packages/linux-bcachefs-git/).
|
||||
|
||||
The whole thing is currently in a *works for me* kind of state.
|
||||
|
||||
## Usage
|
||||
I recommend that you at least skim the scripts in this repo to understand what is happening, because they require `root` access. You can either build the iso directly on arch, or use docker to provide an arch environment.
|
||||
|
||||
* The script will build the linux bcachefs kernel from the AUR and you
|
||||
set the architecture to build the kernel interactively, whenever
|
||||
the prompt comes up. I will add a variable to the `make_iso.sh`
|
||||
script when I come around to it...
|
||||
* In the end, the ISO can be found under `archlive/out`
|
||||
|
||||
### On Arch Linux
|
||||
* make sure you have the following installed: `archiso sudo git base-devel bash`
|
||||
<!-- * or set the `KERNEL_ARCH` variable in the `make_iso.sh` script -->
|
||||
* run `./make_iso.sh` and get a cup of whatever hot beverage you favor
|
||||
|
||||
|
||||
### Through Docker
|
||||
> I have not tested this yet.
|
||||
|
||||
* make sure you have `docker` installed
|
||||
* run `./docker-setup.sh`
|
||||
* This will create an ephemeral, **privileged** docker container to
|
||||
provide an arch environment and run `./make_iso.sh`
|
Loading…
Add table
Reference in a new issue