The officially official Devuan Forum!

You are not logged in.

#1576 Re: Off-topic » Archlinux installer » 2021-04-04 13:44:16

dice wrote:

they should just stick to the arch way

The ISO boots to a root shell rather than the new installer so the command line method is still available and I can't see this changing in the future.

I quite like the new installer because it uses a Python module to make it easily extensible and it doesn't use ****ing bash. It doesn't support non-UEFI systems (yet) and it defaults to systemd-boot & systemd-networkd but I like those anyway.

#1577 Re: Installation » Devuan and Secure Boot » 2021-04-04 10:49:39

Micronaut wrote:

it would not recognize anything but its originally imprinted Win 10 otherwise.

What does that mean, exactly?

Some UEFI firmware implementations are so broken that they will only start Windows' bootmgfw.efi loader. There are workarounds for that though.

See also https://www.rodsbooks.com/efi-bootloade … ive-naming

Micronaut wrote:

do Debian/Devuan  have 'keys' to be allowed to use this 'secure boot' feature?

Yes: https://www.debian.org/releases/stable/ … ecure-boot

Micronaut wrote:

Is it possible to use UEFI/GFT without secure boot?

Yes. EDIT: but some UEFI firmware implementations won't allow it even though it is part of the official specification.

Micronaut wrote:

Would I have to dig further into the BIOS and figure out how to remove the existing keys to allow that?

No.

#1578 Re: Installation » Non Booting GRUB on Beowulf » 2021-04-04 10:43:18

Sorry OP but I didn't pay close enough attention earlier in the thread — your Devuan beowulf system looks to be installed in non-UEFI mode, can you boot it by enabling CSM ("Legacy" mode) and disabling UEFI?

If you want to dual-boot both Devuan and OS X from GRUB then you will have to reinstall beowulf in UEFI mode. I'm pretty sure you will also have to change the partition table on the Devuan disk to GUID.

#1579 Re: Installation » Non Booting GRUB on Beowulf » 2021-04-03 19:07:50

englee wrote:

Please explain to the novice, what you mean by 'make sure correct ESP is mounted under "/BOOT/EFI" first?
. . . "/boot/efi" makes no sense

The Devuan installer should use /boot/efi (not "/BOOT/EFI") for the EFI system partition. GRUB's core.img (grubx64.efi) is stored on the ESP rather than the disk (or partition) itself for UEFI systems.

Check by using

findmnt -o target,source /boot/efi

Or

grep '/boot/efi ' /proc/self/mounts
englee wrote:

Why not have 'grub-install' do its thing directly on the external HDD, that fails to boot kernel (see above code)?

Because the UEFI version of GRUB doesn't store anything directly on the disk. What used to go on the MBR[0] for non-UEFI boxen is now stored on the EFI system partition instead. So adding a block device (eg, /dev/sda) to the UEFI grub-install command has no effect whatsoever and is ignored. For the UEFI grub-install command the --efi-directory= option performs the equivalent function.

[0] For disks with an MS-DOS partition table. If the disk has a GUID partition table then a BIOS boot partition is needed to hold GRUB's core.img for non-UEFI systems.

#1580 Re: Installation » Non Booting GRUB on Beowulf » 2021-04-03 18:50:41

Check the UEFI firmware bitness with

cat /sys/firmware/efi/fw_platform_size

#1581 Re: Off-topic » systemd's new feature (wtf?) » 2021-04-03 18:41:42

Well the systemd developers certainly aren't shy about adding new features (although this pales in comparison to the kernel devs) but they also like to keep systemd as modular as possible so if they wanted a service to control updates then I would expect them to announce systemd-updated. The systemd-sysext service is aimed towards boxen that are specifically designed not to be updated at all in the conventional sense.

And as with almost all systemd features it can be easily disabled and prevented from ever being used with

# systemctl mask systemd-sysext.service

Or by using this command on the system image so it isn't ever loaded at all:

# ln -s /dev/null /etc/systemd/system/systemd-sysext.service

EDIT: from my Arch system:

% apropos systemd|grep update
systemd-system-update-generator (8) - Generator for redirecting boot to offline update mode
systemd-update-done (8) - Mark /etc/ and /var/ fully updated
systemd-update-done.service (8) - Mark /etc/ and /var/ fully updated
systemd-update-utmp (8) - Write audit and utmp updates at bootup, runlevel changes and shutdown
systemd-update-utmp-runlevel.service (8) - Write audit and utmp updates at bootup, runlevel changes and shutdown
systemd-update-utmp.service (8) - Write audit and utmp updates at bootup, runlevel changes and shutdown
systemd.offline-updates (7) - Implementation of offline updates in systemd
%

lol

#1584 Re: Installation » Non Booting GRUB on Beowulf » 2021-04-03 13:53:48

englee wrote:

Why would VM mistake an AMD64 w/i386-PC?

That message is from GRUB — "i386-pc" is for non-UEFI systems, even if they're 64-bit; the UEFI GRUB targets are called "i386-efi" & "x86_64-efi".

So the VM seems to have the grub-pc package installed instead of grub-efi-amd64, which is incorrect if you want to dual-boot with a UEFI OS X installation.

Try this in the installed system:

# apt install grub-efi-amd64{,-signed} # this should cause the removal of the grub-pc package
# grub-install --target=x86_64-efi --bootloader-id=debian --removable # make sure the correct ESP is mounted under /boot/efi first

#1585 Re: Off-topic » systemd's new feature (wtf?) » 2021-04-03 13:45:56

Spock wrote:

I can't help thinking it is a container system that can be implemented on a users system against their wishes
a bit like how windows updates are forced on people
Have I got hold of the wrong end of the stick on this?
Am I wrong?

It only allows for extensions to /usr & /opt (at the moment) so any "forced updates" could only be applied to those directories, which would limit them to themes, fonts & icon sets. Anyway the paradigm is intended to be used with immutable system images, which would preclude permanent upgrades.

#1586 Re: Installation » Non Booting GRUB on Beowulf » 2021-04-02 09:29:25

englee wrote:

Installer failed to recognize beowulf USB drive's ESP

What does that mean, exactly?

I've just experimented in a VM and if I use the "manual" partitioning option then multiple ESPs are detected and identified as such. I managed to install Devuan onto a second disk with it's own ESP by marking the ESP on the first disk as "do not use". The Devuan ESP was marked as "EFI system partition" and the installer then successfully created a boot entry pointing to it. I think you can use the "Advanced" installer to force the fallback EFI loader but I just rebooted and used "Rescue Mode" to do that afterwards.

englee wrote:
1      1049kB  99.6MB   98.6MB  fat16       EFI System Partition boot, esp

Was the original ESP marked "fat16"? I always use FAT32.

#1587 Re: Installation » [SOLVED] Devuan Beowulf not upgrading to 4.19.0-16-amd64 » 2021-04-01 21:55:14

Is the linux-image-amd64 metapackage installed in both systems?

EDIT: or linux-headers-amd64.

#1588 Re: Off-topic » systemd's new feature (wtf?) » 2021-04-01 17:12:13

steve_v wrote:

it could be a prank

No, it's real. I'm using v248 of systemd in my Arch box.

#1589 Re: Installation » [SOLVED] Duplicate log entry for /var/log/wtm - logrotate.conf error » 2021-04-01 17:11:12

Altoid wrote:

At least in my system it is not a drop-in replacement.

Why not? What happens when you comment-out the wtmp & btmp stanzas?

Altoid wrote:

What does your logrotate.conf look like?

https://salsa.debian.org/debian/logrota … otate.conf

#1590 Re: Installation » [SOLVED] Duplicate log entry for /var/log/wtm - logrotate.conf error » 2021-04-01 16:16:01

Altoid wrote:

The problem is that the fix posted is an Ubuntu fix.
ie: probably will not run properly in Devuan without adjusting it

Have you actually tried applying the fix? It looks fairly generic.

(FWIW I don't have any wtmp lines in /etc/logrotate.conf in my bullseye system.)

#1591 Re: Installation » Non Booting GRUB on Beowulf » 2021-04-01 16:06:00

The EFI system partition should be FAT-formatted and have the "boot,esp" flags applied (partition code "EF00" if you're using gdisk). 100MiB should be plenty but some older systems need 512MiB so just make it the same size as the one you already have.

I'm not sure how the installer will cope if presented with multiple ESPs but I would try mounting the one you want to be used under /boot/efi in the installer, that's where the grub-install command will presume the ESP to be located unless told otherwise.

#1592 Re: Off-topic » systemd's new feature (wtf?) » 2021-04-01 16:02:09

I actually thought this was an April Fool's joke but:

% systemd-sysext status
HIERARCHY EXTENSIONS SINCE
/opt      none       -    
/usr      none       -    
%

Anyway stateless systems are a good idea IMO. Feel free to throw stuff at me tongue

#1593 Re: Installation » [SOLVED] Permissions for script in cron » 2021-03-31 14:59:38

Test with run-parts using root rather than your normal user. Root should have the /sbin directories in PATH, unlike your normal user. Note that either sudo -i or su - (the dash is important) are needed to obtain a root shell with the correct PATH.

#1594 Re: Installation » Non Booting GRUB on Beowulf » 2021-03-31 14:54:06

englee wrote:

Explain what Rescue means by 'Force GRUB installation to the EFI removable media path'?

That applies the --removable option to the grub-install command, which copies grubx64.efi & shimx64.efi to $ESP/EFI/BOOT/ and renames the latter to BOOTX64.EFI. This should be booted automatically even without any boot entries.

See also https://www.rodsbooks.com/efi-bootloade … ive-naming

EDIT: corrected link.

englee wrote:
Boot0000* Devuan  HD(1,GPT,1bc27af6-16da-4b55-9dda-6ab2e0b4cob9,0x28,0x64000)/File(\EFI\debian\shimx64.efi)

So the new boot entry has been created correctly (and /dev/sda1 was the ESP, as can be seen from the GUID code) and it is being booted by default. Was the "devuan" folder correctly copied to a "debian" version? Check the ESP for /EFI/debian/shimx64.efi; grubx64.efi should also be in the same directory.

englee wrote:

Why can't the installed beowulf use the same type of standalone bootloader as it's installer

You can do that but it will require a new EFI system partition on the beowulf drive to hold the GRUB files.

#1595 Re: Installation » Non Booting GRUB on Beowulf » 2021-03-30 15:39:11

englee wrote:

How would you shutdown/reboot from beowulf root?

You can't shutdown or reboot from the chroot environment. You should have exited the shell and used the installer menu to shutdown.

englee wrote:

there was _no_ sign of GRUB

Did you check that /dev/sda1 was assigned to the EFI system partition before running the commands?

What is the output of efibootmgr -v now?

#1596 Re: Installation » Non Booting GRUB on Beowulf » 2021-03-30 05:11:11

englee wrote:
Boot0000* devuan HD(1,GPT, lbc27af6-16da—4b55-9dda-6ab2e0b4c0b9,0x28,0x64000)/File(\EFI\devuan\shimx64.efi)

The grub-efi-amd64-signed package is hard-coded to look under $ESP/EFI/debian/ for the location of the configuration file so that might be why it's having trouble.

So from the shell in the installed system run these commands (this presumes the EFI system partition is assigned to /dev/sda1):

mount /dev/sda1 /mnt
cp -r /mnt/EFI/de{vu,bi}an
efibootmgr -b 0 -B
efibootmgr --create --label 'Devuan' --loader '/EFI/debian/shimx64.efi'
debconf-set-selections <<<'grub-efi-amd64 grub2/update_nvram boolean false'

^ That copies the "devuan" directory to a "debian" version, deletes the current boot entry, creates a new boot entry pointing to the "debian" directory and tells the grub-efi-amd64 package not to change the boot entries in future.

englee wrote:

Would you suggest I reinstall GRUB onto sda or try installing GRUB onto beowulf root, sdb?

Defining a target drive or partition is meaningless for the UEFI version of GRUB.

#1597 Re: Other Issues » Shutdown delay caused by anacron » 2021-03-29 16:21:50

Check the logs and system mail. I don't use {ana,}cron in Debian so I might not be much help here (sorry).

#1598 Re: Installation » [SOLVED] Permissions for script in cron » 2021-03-29 16:17:53

Also check if the cron.weekly script is recognised and run:

run-parts --test /etc/cron.weekly

^ That will show a list of the scripts to be run.

#1599 Re: Other Issues » Shutdown delay caused by anacron » 2021-03-28 18:37:06

Can we see the output of this command (as root):

# crontab -l

#1600 Re: Installation » [SOLVED] Permissions for script in cron » 2021-03-28 18:34:34

Can we see the output of this command (as root):

# crontab -l

Board footer

Forum Software