Skip to content
Snippets Groups Projects
  1. Jan 01, 2025
  2. Dec 31, 2024
    • Clayton Craft's avatar
      main/boot-deploy: use busybox sh (MR 5960) · dcc52796
      Clayton Craft authored
      boot-deploy uses 'local', which technically isn't POSIX-compliant
      and if someone has 'sh' from something else that strictly adheres to
      POSIX then boot-deploy will fail.
      This is a workaround for boot-deploy#38
      
      [ci:skip-build]: already built successfully in CI
      dcc52796
  3. Dec 30, 2024
    • Minecrell's avatar
      main/postmarketos-initramfs: skip mounting /boot if rootfs is in fstab (MR 5920) · 755132f6
      Minecrell authored and Clayton Craft's avatar Clayton Craft committed
      There is a special check in init_2nd.sh for older postmarketOS
      installations that do not have a valid /etc/fstab file. When /boot does not
      appear in fstab, it searches for the boot partition and mounts it manually.
      
      However, /boot might be intentionally omitted in fstab, e.g. because we
      just have a single rootfs partition that also contains /boot. In that case
      it will wait forever, trying to find the missing boot partition.
      
      The old installations do not have any entries in fstab, so fix this by
      checking if the file is empty instead (with all comments and whitespace
      removed).
      [ci:skip-build]: already built successfully in CI
      755132f6
    • Minecrell's avatar
      Revert "main/postmarketos-initramfs: mount subpartitions if root or boot is... · 2965a659
      Minecrell authored and Clayton Craft's avatar Clayton Craft committed
      Revert "main/postmarketos-initramfs: mount subpartitions if root or boot is missing (MR 5625)" (MR 5920)
      
      This reverts commit 1259d74b.
      
      The main reason why that change was necessary is because we skipped
      mounting subpartitions entirely if we found a potential root partition
      (which could be simply a crypto_LUKS partition from a different distro).
      Now that we look only for the actual root partition (based on the UUID),
      this should not happen anymore.
      
      Checking both conditions causes delays if there is no boot partition,
      e.g. if pmOS was installed with --single-partition. Usually we don't need
      to mount the boot partition anymore, because all needed files are part of
      the initramfs. So let's drop the check for the boot partition again and
      rely on the UUIDs to ensure we set up the correct partitions.
      2965a659
    • Minecrell's avatar
      main/postmarketos-initramfs: mount root partition we unlocked (MR 5920) · 033d5f79
      Minecrell authored and Clayton Craft's avatar Clayton Craft committed
      When using an encrypted installation of postmarketOS, the pmos_root_uuid=
      on the cmdline only tells us the UUID of the crypto_LUKS partition. Once
      the partition is unlocked, we perform the the old unreliable auto detection
      again. This might mount the wrong partition if multiple installations of
      pmOS are attached to the system.
      
      After we unlock the root partition, we know exactly where the root
      partition is supposed to be (= at /dev/mapper/root). Let's use that
      directly instead of going through the whole detection sequence again.
      033d5f79
    • Minecrell's avatar
      main/postmarketos-initramfs: don't fallback looking for root when given UUID or path (MR 5920) · e5a1370d
      Minecrell authored and Clayton Craft's avatar Clayton Craft committed
      Right now we fallback to the old behavior of searching for the "pmOS_root"
      label when the root partition specified by pmos_root_uuid= on the cmdline
      is not found. This works fine most of the time, but there are edge cases in
      which this does not behave correctly. Problems occur especially if there
      are multiple installations of pmOS (e.g. one on internal storage, and one
      on USB drive/SD card). Depending on timing or enumeration order, the system
      might boot into the wrong rootfs if the intended root partition shows up
      too late.
      
      For the boot partition we already enforce the UUID provided on the cmdline.
      Let's apply the same for the root partition to ensure we always boot into
      the correct root partition.
      e5a1370d
  4. Dec 29, 2024
  5. Dec 28, 2024
  6. Dec 27, 2024
  7. Dec 26, 2024
  8. Dec 24, 2024
  9. Dec 23, 2024
Loading