/srv/irclogs.ubuntu.com/2021/01/21/#ubuntu-server.txt

=== denningsrogue1 is now known as denningsrogue
=== denningsrogue5 is now known as denningsrogue
=== zenlinux9 is now known as zenlinux
=== trekkie1701c_ is now known as trekkie1701c
cathodehey all, ubuntu server 18.04 LTS running on a software md raid1 configuration, i did a dist upgrade to 20.04 and at the first reboot during the dist upgrade, the system now will not boot with a grub error... "Error: symbol 'grub_file_filters' not found."04:54
cathodeand it dumps me to a grub recovery console.04:54
tomreyn!grub | cathode04:56
ubot3cathode: GRUB2 is the default Ubuntu boot manager. Lost GRUB after installing Windows? See https://help.ubuntu.com/community/RestoreGrub - For more information and troubleshooting for GRUB2 please refer to https://help.ubuntu.com/community/Grub204:56
cathodethe partitions on my pair of OS disks are ONLY the fd partitions04:57
cathodeif i do grub-install against the disk will it destroy anything?04:57
tomreynwhat are "fd partitions"?04:58
cathodelinux raid autodetect type04:58
tomreynbut you have a partition table there? whjich type?04:58
cathodeno, that's it04:59
tomreynno partition table means you need to install grub elsewhere. maybe you had it embedded04:59
tomreynbut that was always sketchy and never recommended04:59
cathodenope. it was installed against the pair of OS disks only04:59
tomreynbug 189168005:00
ubot3Bug 1891680 in grub2 (Ubuntu Xenial) "grub-pc needs to detect when debconf points to invalid drive and stop in preinst, before unpacking files, and also treat this as a failure in postinst" [Critical, Confirmed] https://launchpad.net/bugs/189168005:00
tomreyni got there via dupe bug 184879705:02
ubot3Bug 1891680 in grub2 (Ubuntu Xenial) "grub-pc needs to detect when debconf points to invalid drive and stop in preinst, before unpacking files, and also treat this as a failure in postinst" [Critical, Confirmed] [duplicate: 1848797] https://launchpad.net/bugs/189168005:02
cathodeI'm not really sure what to do with that05:08
bipinsingh061Hey anyone here ?05:28
bipinsingh061I have used ubuntu 20.04 before , it was a not so fast but ok , recently I got SSD installed on my laptop, and installed ubuntu 20.10 on laptop , its very slow , very laggy05:30
tomreynbipinsingh061: laptop sounds like you'll be running a desktop there? join #ubuntu then05:43
tomreynah, you noticed, and did.05:43
RoyKis there a way to list kernels with kernel number, as in the number used by GRUB_DEFAULT? I'm not in front of this machine07:34
TJ-RoyK: what do you mean by 'kernel number'07:45
RoyKTJ-: from /etc/default/grub: GRUB_DEFAULT=007:53
RoyKthat can be changed, but I'd like a list of the valid ones before doing anything, avoiding to boot into nowhere07:54
RoyKsince I don't have remote access to this box like ipmi/idrac or something and all work is from home because of covid1907:56
TJ-RoyK: that's a simple index number of the menuentry stanzas in /boot/grub/grub.cfg07:59
TJ-r08:01
TJ-RoyK: see https://www.gnu.org/software/grub/manual/grub/html_node/default.html#default08:01
halvorsIs hwe available for the Raspberry Pi 4 image?10:58
halvorsAnd how do i enable it?11:11
juliankhalvors: no, rpi image uses linux-raspi kernel packages11:17
juliankwaveform: ^11:17
waveformhalvors, I'll try and find out from the kernel team what the long-term plan is with the focal kernel on the pi, but juliank is correct - at this time there's no hwe kernel package for the pi11:24
waveformhalvors, the linux-raspi kernel is intended to be a "rolling" version (similar to the various cloud kernels, and hwe). The (tentative) plan at this stage is that on focal it'll skip 5.8 (groovy's kernel) and jump straight to hirsute's kernel version (once that is finalized)12:37
halvorswaveform: Thank you so much :) And you too juliank. I'll wait for the hirsute.12:38
whichpatrickI'm trying to fix a VM but emergency.mode is booting with the disk in read-write mode and I cannot get it remounted in read-only.14:17
whichpatrickIs there some other way besides adding 'systemd.unit=emergency.mode' to the linux line in grub?14:18
whichpatrickNot sure what I'm doing wrong here, and googling for it just finds a bunch of results about how to get OUT of read-only.14:18
tewardwhichpatrick: have you tried `sudo mount -o remount,ro /` ?14:32
tewardafter you're booted.14:32
teward(force into ro mode)14:32
whichpatrickteward: yes, device is in use15:27
whichpatrickactually "mount point is busy"15:28
whichpatrickwhat's particularly confusing is that supposedly the difference between recovery mode and emergency mode is that emergency mode boots in ro15:29
whichpatrickbut that's not what's happening :/15:29
TJ-whichpatrick: it's either just "emergency" or "systemd.unit=emergency.service"15:49
tewardTJ-: how much do you know abotu systemd?15:56
tewardand specifically mount type units15:56
sdezielI thought it was "systemd.unit=emergency.target"15:57
sdezielTIL: "emergency" is a shortcut16:00
TJ-sdeziel: there is a .target but strangely the docs talk about the .service being equiv to 'emergency'16:14
TJ-teward: how specific? I wrote a generator that created lots of bind mounts once16:15
tewardTJ-: trying to create a template such unit that can do a specific local loop mount of a .img as part of another service - it's how i'm enforcing quotas for minio server instances.  (I have systemd units set up for the services, but have to /etc/fstab the mounts right now - would like to be able to create a template/mechanism that the instantiated units (minio@INSTANCE) can depend on so systemd knows it can/can't run the service without16:16
tewardthe correpsonding mount for that named instance)16:16
tewardunfortunately... hitting the wall with systemd mount units.16:16
sdezielTJ-: looks like the .service is activated by the .target16:18
tewardcreating the mount manually works fine16:19
tewardcreating the mount manually works fine (with `systemd-mount` and the proper arguments)16:19
tewardtrying to template it makes a whole mess of "can't find this object" or whatever in the systemd api/schema/objects16:19
sdezielteward: you can see what was generated from /etc/fstab using: systemctl cat path-to-minio-img.mount16:19
tewardsdeziel: i guess what i'm trying to do is shortcut having to create full-path mount names in the mount objects... and even if I can't, I can't make it a template to instantiate it.  I.E. minio-mounts-@.mount - which in THEORY can create an instantiated template mount unit - errors when referenced16:21
tewardso I guess i'm having a headscratcher on how mount units differ16:21
sdezielteward: what does your template look like?16:22
tewardi'll pull it up in a sec, i need food *badly* or i'mma pass out.  *goes to fetch emergency food supplies*16:22
ddstreetteward from man systemd.mount "Note that mount units cannot be templated,"16:23
tewardthat explains that one16:23
tewardso i'll just have to create individual mount units then...16:23
ddstreetyeah i think so16:24
teward... wonder if i can cheat it with a `systemd-mount ...` call in ExecPreStart for the service... hmmmmmmmmm16:25
teward*goes to do testing, but first food*16:25
TJ-teward: or a specific generator (which can be just a shell script that writes them into /run/systemd/generator{,.late}/16:26
TJ-I can't find my generator now; must be on another system16:26
tewardyeah i was gonna say I need examples xD16:26
TJ-teward: the *only* problem with this is, it doesn't work at boot-time but will any time later16:30
TJ-teward: due to, in my case, the LVMs it expects not being available at the time generators are executed16:30
TJ-teward: https://iam.tj/projects/ubuntu/systemd-generator-LVM_automount16:30
TJ-heading off; back later16:39

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!