Skip to content

Suggestion: add the ability to install Chard Arch chroot on a removable media (p.s. by shadowed1: keeping this issue open until it is implemented) #12

Description

@C0d1ngR4bb1t

I've been trying with Google Gemini to install chard chroot on a removable media, and I found a way to trick the chromeos jail for USBs so we can install chard without getting noexec error (among other perm errors). The method consists on

  1. Connect a removable USB drive (mine is 32GB) and renaming it (in my case, ChardUSB)
  2. Doing sudo umount -l /media/removable/ChardUSB (ChardUSB is replaced with the Label of your removable media)
  3. sudo umount -l /dev/sdX replacing X with the current ID of the usb unit (looking at lsblk)
  4. After that, create mkdir -p /usr/local/MiUSB
  5. Later, format the USB with ext4 sudo mkfs.ext4 /dev/sdX -L ChardUSB (again, replacing the X)
  6. Disconnect and replug USB
  7. Do again step 2 and 3
  8. and sudo mount "$DEVICE" /usr/local/MiUSB -t ext4 -o rw,exec,dev,suid || true
    9. After that, sudo ln -s /usr/local/MiUSB/chard /usr/local/chard
    10. Then, when DOWNLOADING the Chard Arch installer script, it is first located at ~/Chard_Installer, so we go to cd ~ and I do sed -i 's/sudo timeout 10 rm -rf "$CHARD_ROOT"/# sudo timeout 10 rm -rf "$CHARD_ROOT"/g' Chard_Installer so the symbolic link isn't removed on installation.
    EDIT: Trying with no symbolik link and trying to do it directly on mountpoint /usr/local/MiUSB
  9. Then, I move the ChardInstaller to /usr/local and I run it edit: putting the install path at the mountpoint (in my case, /usr/local/MiUSB/chard)
  10. Installation starts. It might be slow depending on transfer speed, but it works.
    I'm still installing it (extracting the Arch Bootstrap), and I will send here another message because I might have to edit something of the script that mounts the chroot chard root because of the functionality of detecting removable media. I'll update the status later on this same issue.

Sorry for poor English and maybe poor explanation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions