mirror of
https://github.com/YunoHost/yunohost-debootstrap.git
synced 2024-09-03 20:06:21 +02:00
23 lines
618 B
Markdown
23 lines
618 B
Markdown
# yunohost-debootstrap
|
|
This script allow you to create yunohost installation with debootstrap.
|
|
|
|
## Setup on debian
|
|
|
|
```
|
|
sudo apt install debootstrap
|
|
git clone https://github.com/YunoHost/yunohost-debootstrap
|
|
sudo cp yunohost-debootstrap/yunohost /usr/share/debootstrap/scripts/
|
|
```
|
|
|
|
## Patch debootstrap
|
|
You need to patch debootstrap like this:
|
|
```
|
|
sed -i "s@#\!/bin/sh@#\!/bin/bash@" /usr/sbin/debootstrap
|
|
```
|
|
|
|
## Test it
|
|
```
|
|
mkdir ynh_chroot
|
|
sudo debootstrap --include="acpi-support-base,kbd,udev,linux-image-amd64,openssh-server,ca-certificates,debhelper" yunohost ./ynh_chroot/ https://deb.debian.org/debian/
|
|
```
|
|
|