|
@@ -1,20 +1,12 @@
|
|
|
# bootstrap
|
|
|
+The script in this repo bootstraps Debian bookworm. The script may run in a grml live environment. Design decisions and usage instructions are outlined in the beginning of the script.
|
|
|
|
|
|
-The script in this repo bootstraps Debian bookworm from a grml live environment. Design decisions and usage instructions are outlined in the beginning of the script.
|
|
|
|
|
|
-
|
|
|
-### Usage
|
|
|
-Remark: Make sure to boot grml for **amd64**
|
|
|
+### Basic usage
|
|
|
```
|
|
|
-# boot grml
|
|
|
-# - press e to setup network if neccessary
|
|
|
-# - press Return to run a shell
|
|
|
-# - Run the command Start ssh , with a capital S to start the ssh server
|
|
|
-# - passwd to change the root password
|
|
|
git clone https://git.in-ulm.de/ulpeters/bootstrap.git
|
|
|
cd bootstrap
|
|
|
cp config.sh.template config.sh
|
|
|
-# ./config-get-netconf-eth0.sh to copy running grml network config
|
|
|
vi config.sh
|
|
|
./bootstrap-bookworm.sh install
|
|
|
# reboot
|
|
@@ -22,20 +14,32 @@ vi config.sh
|
|
|
/installer/bootstrap-bookworm.sh postinstall
|
|
|
```
|
|
|
|
|
|
+#### Run in grml live environment
|
|
|
+1. Boot grml **amd64**
|
|
|
+2. Press e to setup network if neccessary
|
|
|
+3. Press ⏎ to run a shell
|
|
|
+4. Run `Start ssh`, with a capital S to start the ssh server
|
|
|
+5. Run `passwd` to change the root password
|
|
|
+6. ./config-get-netconf-eth0.sh to copy running grml in `config.sh`
|
|
|
+7. Login via ssh and proceed with *Basic usage*
|
|
|
+
|
|
|
|
|
|
-### Alternatives
|
|
|
-#### 1. Qemu disk as installation target
|
|
|
+#### Qemu disk as installation target
|
|
|
+To prepare a qemu disk as installation target run following commands and set `disk=/dev/nbd0` in `config.sh`:
|
|
|
```
|
|
|
img="/var/lib/libvirt/images/ts-linux-testing.qcow2"
|
|
|
qemu-img create -f qcow2 -o size=20G $img # create image
|
|
|
qemu-nbd -c /dev/nbd0 $img # create device from image
|
|
|
qemu-nbd -d /dev/nbd0 # release device
|
|
|
```
|
|
|
-Set `disk=/dev/nbd0` as installation target
|
|
|
|
|
|
-#### 2. EFI installion with encrypted data partition
|
|
|
-- Adapt and run [uefi-parted.sh](uefi-parted.sh) prior `bootstrap-bookworm.sh install`
|
|
|
-- Settings for config.sh
|
|
|
- - `partition=efi`
|
|
|
- - `disk1=$disk"p2"`
|
|
|
- - `disk0=$disk"p1"`
|
|
|
+#### Partition schema
|
|
|
+- `partition=mbr-single`, recommended for small VMs, will prepare
|
|
|
+ - a mbr partition table
|
|
|
+ - a single partition formated as ext4 partition
|
|
|
+ - install grub-pc
|
|
|
+- `partition=efi-single`, recommended for small physical servers, will prepare
|
|
|
+ - a gpt partion table
|
|
|
+ - a 310 MB partition for efi
|
|
|
+ - a 50 GB partition for the operation system
|
|
|
+ - a partition with the remaining disk space for a luks container
|