Giter Club home page Giter Club logo

Comments (6)

mihneaCR avatar mihneaCR commented on June 16, 2024

I am experiencing this exact issue also.
The UUID is correct (I've checked).
Manually referencing the drive in /etc/default/grub yields the same result (Only one nvme connected for the installation, so the mapping could not have changed).
Not quite sure what the error is, will update if I find anything.

from arch-setup-script.

5ouls3dge avatar 5ouls3dge commented on June 16, 2024

Wow thank you, thought i was alone, rewritting the script to find it. what do you think of this line. No system to test code if you have a vm see if it makes a difference?

`# Formatting the LUKS Container as BTRFS.
echo "Formatting the LUKS container as BTRFS."
mkfs.btrfs $BTRFS &>/dev/null
#this line:
mount -o clear_cache,nospace_cache $BTRFS $MOUNT_POINT

Change to (Create and set COW on the Btrfs subvolumes)

mount -t btrfs $BTRFS $MOUNT_POINT
`

The code is well written. hard to find bug. i have created a version that removes the crypt file part to see if it resolves it. to see if it is isolated around that setup.

from arch-setup-script.

mihneaCR avatar mihneaCR commented on June 16, 2024

I don't think that this will change anything, the error stems from grub (I think) not being able to find /dev/mapper/cryptroot, which occurs one step prior to the mount call. /dev/mapper/cryptroot is the device then being mounted by the call you mention, it does not appear in the emergency shell, thus indicating a problem with the encryption. You can try though, and let me know whether this changed anything. From when I've used btrfs, specifying the filesystem wasn't necessary

from arch-setup-script.

5ouls3dge avatar 5ouls3dge commented on June 16, 2024

maybe this:
https://bbs.archlinux.org/viewtopic.php?id=250585

from arch-setup-script.

5ouls3dge avatar 5ouls3dge commented on June 16, 2024

@TommyTran732 does the script work for you? Any ideas on this?

from arch-setup-script.

funk-on-code avatar funk-on-code commented on June 16, 2024

In case it's relevant, I fixed this by changing the HOOKS line on line 236 from:

sed -i 's,modconf block filesystems keyboard,keyboard modconf block encrypt filesystems,g' /mnt/etc/mkinitcpio.conf

to:

sed -i 's,HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block filesystems fsck),HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block encrypt filesystems fsck),g' /mnt/etc/mkinitcpio.conf

The syntax for modconf changed in the most recent few updates, so after much trial-and-error, quoting the entire line worked the most reliably, works in ISOs 202404 and above.

from arch-setup-script.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.