2022-08-19 22:31:59 +02:00
|
|
|
# Linux Image Manager
|
2023-04-25 15:07:19 +02:00
|
|
|
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](./LICENSE.txt)
|
2019-09-30 14:47:48 +02:00
|
|
|
|
2022-08-19 22:31:59 +02:00
|
|
|
This repository contains some shell scripts to download and configure linux images and to transfer them to a storage.
|
2020-05-03 22:14:18 +02:00
|
|
|
|
2023-05-02 13:21:46 +02:00
|
|
|
## Virtual Btrfs RAID1 Setup
|
|
|
|
|
|
|
|
To setup a virtual btrfs encrypted raid 1 execute:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
bash scripts/encryption/storage/raid1/setup.sh
|
|
|
|
```
|
|
|
|
|
2022-08-19 22:31:59 +02:00
|
|
|
## Setup
|
2023-05-02 13:21:46 +02:00
|
|
|
|
2020-09-30 17:07:51 +02:00
|
|
|
To install a Linux distribution execute:
|
2020-05-02 11:46:39 +02:00
|
|
|
|
|
|
|
```bash
|
2020-09-30 17:02:56 +02:00
|
|
|
sudo bash ./scripts/image/setup.sh
|
2020-05-02 11:46:39 +02:00
|
|
|
```
|
2023-05-02 13:21:46 +02:00
|
|
|
|
2024-07-21 15:34:05 +02:00
|
|
|
### Cleanup
|
|
|
|
|
|
|
|
To cleanup the image setup execute:
|
|
|
|
```bash
|
|
|
|
fuser -k /dev/mapper/linux-image-manager-*;
|
|
|
|
umount -f /dev/mapper/linux-image-manager-*;
|
|
|
|
fuser -k /tmp/mapper/linux-image-manager-*;
|
|
|
|
umount -f /tmp/linux-image-manager-*;
|
|
|
|
```
|
|
|
|
|
|
|
|
Additional you can unmount the device with a command like
|
|
|
|
|
|
|
|
```bash
|
|
|
|
umount -f /dev/sd*;
|
|
|
|
```
|
|
|
|
|
2022-08-19 22:31:59 +02:00
|
|
|
## Chroot
|
2023-05-02 13:21:46 +02:00
|
|
|
|
2020-09-30 17:07:51 +02:00
|
|
|
To chroot into a Linux distribution on a storage execute:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sudo bash ./scripts/image/chroot.sh
|
|
|
|
```
|
|
|
|
|
2022-08-19 22:31:59 +02:00
|
|
|
## Backup
|
2023-05-02 13:21:46 +02:00
|
|
|
|
2020-09-30 17:07:51 +02:00
|
|
|
To backup a image execute:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sudo bash ./scripts/image/backup.sh
|
|
|
|
```
|
2020-05-02 11:46:39 +02:00
|
|
|
|
2019-09-30 13:44:02 +02:00
|
|
|
## License
|
2023-05-02 13:21:46 +02:00
|
|
|
|
2019-09-30 13:44:02 +02:00
|
|
|
The ["GNU GENERAL PUBLIC LICENSE Version 3"](./LICENSE.txt) applies to this project.
|