[docker] Fix Dockerfile and Docs

main
Joaquin 3 years ago
parent dd7a62c14c
commit 1650d42773
Signed by: puly
GPG Key ID: 9E9299CD96C65EC6
  1. 1
      Dockerfile
  2. 6
      README.md

@ -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"]

@ -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.

Loading…
Cancel
Save