From 1650d42773713ef0b3eec8b85343a41db9f05cd5 Mon Sep 17 00:00:00 2001 From: Joaquin Date: Wed, 12 Apr 2023 14:22:05 +0300 Subject: [PATCH] [docker] Fix Dockerfile and Docs --- Dockerfile | 1 + README.md | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index df71ac3..c876086 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,5 @@ COPY install /usr/share/koffe/install RUN chmod +x /usr/bin/koffe RUN pacman -Suy --noconfirm RUN pacman -S sudo base archiso pacman-contrib libnewt wget git --noconfirm +WORKDIR /finalimage ENTRYPOINT ["/usr/bin/koffe"] diff --git a/README.md b/README.md index 2537c53..83ec77a 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,11 @@ If you're using another distrbution create a chroot system (using the bootstrap `sudo docker build -t koffe .` -`sudo docker run --workdir /finalimage -v ADRESS_ON_HOST:/finalimage --privileged --rm koffe /usr/bin/koffe --pacs=base,linux` +(if prompted to import or update pgp keys, that means your docker archlinux img is heavily out of date, run `docker pull archlinux` to fix it. -Note: replace ADRESS_ON_HOST with a absolute path on your host, something like `c:\\Foo\\bar\\` on windows or `/foo/bar` on lnx/macOS/bsd +`sudo docker run /finalimage -v $PWD:/finalimage --privileged --rm koffe --pacs=base,linux` + +Note: On Windows, replace $PWD with an absolute path on your host, something like `c:\\Foo\\bar\\` ## Converting a standard Arch USB to koffe without any other OS (internet required): In the grub boot menu, press tab on the menu entry you want to boot and add `copytoram` at the end of the kernel parameters, boot from that. Next, clone the koffe repo from the aur and install it (`git clone https://aur.archlinux.org/koffe ; chown -hR nobody koffe ; cd koffe ; sudo -u nobody makepkg -si`). Generate your iso using koffe (documentation @ koffe --help), then lsblk and identify your arch USB, wipe the file system `wipefs --all /dev/sdX` (make sure you're wiping the entire drive, not just a partition) then burn the koffe iso (`cat /root/*.iso > /dev/sdX`) once again, make sure you're doing it to the whole drive, not just a partition.