From 9d205c8b9d3d40c1a879c560ce51ca11e5c5ffe1 Mon Sep 17 00:00:00 2001 From: KoNicks Date: Mon, 17 May 2021 21:45:55 +0300 Subject: [PATCH] fixed makedep order and docker command --- README.md | 4 ++-- koffe | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4c51552..1a4639d 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,9 @@ If you're using another distrbution create a chroot system (using the bootstrap `sudo docker build -t koffe .` -`sudo docker run -v ADRESS_ON_HOST:/etc/koffe-docker/finalimage --rm koffe /usr/bin/koffe --pacs=base,linux` +`sudo docker run -v ADRESS_ON_HOST:/etc/koffe-docker/finalimage --privileged --rm koffe /usr/bin/koffe --pacs=base,linux` -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 +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 ## 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. diff --git a/koffe b/koffe index 949876b..d782efe 100755 --- a/koffe +++ b/koffe @@ -150,8 +150,6 @@ then git clone https://aur.archlinux.org/$app /tmp/koffe/aurbg/$app chown -hR nobody /tmp/koffe/ cd /tmp/koffe/aurbg/$app - sudo -u nobody makepkg --noconfirm --skippgpcheck - cp /tmp/koffe/aurbg/$app/*.pkg.tar.zst /usr/share/archiso/configs/releng/airootfs/root/pkg echo $app >> /usr/share/archiso/configs/releng/airootfs/root/install.list declare -a bb bb=$(cat /tmp/koffe/aurbg/$app/.SRCINFO | grep depends | cut -f 2 -d '=' | cut -f 1 -d '>' | cut -f 1 -d ':') @@ -179,7 +177,8 @@ then do pacman -S $depend --noconfirm done - + sudo -u nobody makepkg --noconfirm --skippgpcheck + cp /tmp/koffe/aurbg/$app/*.pkg.tar.zst /usr/share/archiso/configs/releng/airootfs/root/pkg fi done repo-add /usr/share/archiso/configs/releng/airootfs/root/pkg/koffe.db.tar.gz /usr/share/archiso/configs/releng/airootfs/root/pkg/*