The officially official Devuan Forum!

You are not logged in.

#1776 Re: Other Issues » [SOLVED] Security update delays » 2019-03-05 01:11:01

Setting the default release changes the priority from 500 to 990 on the ascii main version. I just tested it - they were both 500 before I set the default.

I guess you'll need to add '-t ascii-security' to your install command.

#1777 Re: Devuan Derivatives » [Fixed] Upgraded "Miyo-XTRA Beowulf" boot suspend/resume delay » 2019-02-27 09:06:03

Is the intel-microcode package installed? That injects a binary into the initrd. I'm wondering if that could be causing the confusion.

#1778 Re: Other Issues » I think installed apt is sandboxed. » 2019-02-26 11:30:20

This should show you the available commands, and those commands should have man pages. If not, try running each command with the '--help' option.

ls /usr/bin/dvb*

#1779 Re: Devuan Derivatives » [Fixed] Upgraded "Miyo-XTRA Beowulf" boot suspend/resume delay » 2019-02-25 18:26:37

No such file or directory

You're sure it's there? You didn't change directory between running xzcat and running file? Try using the full path to the real file instead of the symlink. (/boot/initrd.img-<version>)

BTW, it's better if you don't have the initrd inside the directory where you extract it. You don't want it to end up inside the new initrd when you repack it.

#1780 Re: Other Issues » I think installed apt is sandboxed. » 2019-02-25 04:03:15

W: Download is performed unsandboxed as root as file '/root/.synaptic/tmp//tmp_sh' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

That's the message you get when you download a package as root. Download as ordinary user instead.

What message do you get when you run

apt install dvb-apps

If it's already installed, apt will tell you that. Look in /usr/share/doc/dvb-apps for information. The package description says "interface::commandline" so that might explain why it's not in the menu.

dpkg -L dvb-apps

will give you a list of the files in the package. That will include a list of any commands. There will probably be man pages for those commands.

#1781 Re: Hardware & System Configuration » Shutdown encrypted LVM on Beowulf » 2019-02-24 14:20:17

It goes by too fast for me to see what it says. There are only about four lines of output, and there's no red. I did add 'local vgs vg'  to the beginning of do_stop() but I don't know if that would make a difference.

#1782 Re: Devuan Derivatives » [Fixed] Upgraded "Miyo-XTRA Beowulf" boot suspend/resume delay » 2019-02-24 13:58:44

I'm not sure what success you're expecting. Did you repack the initrd, and if so, what changes did you make to it? Or are you still trying to unpack it?

file /boot/initrd.img-4.19.0-2-amd64 should tell you what compression is used. Use the corresponding zcat or xzcat command above to unpack it. Tell me which compression was used and what you found inside the initrd. Possible choices of things to do would be remove the offending files, edit the offending files, maybe something else.

Maybe you're missing these?

Rebuild initrd with gzip compression:
find . -print0 | cpio -0 -H newc -o | gzip -c > ../initrd.img

Rebuild initrd with xz compression:
find . | cpio -o -H newc | xz --check=crc32 --x86 --lzma2=dict=512KiB > ../initrd.img

Then of course, you have to replace the original with your changed version. (keep a backup copy of the original and copy the modified one to /boot, and make sure the name corresponds to what your boot menu expects it to be.)

#1783 Re: Hardware & System Configuration » Shutdown encrypted LVM on Beowulf » 2019-02-23 22:58:31

Forget about the timeouts. The old patch still works. Here's what my do_stop function looks like now. I added the lines between 'dmsetup mknodes' and 'log_action_begin_message...'  I did not add the local variable declarations. Those are no longer in this function. Maybe I should.

do_stop() {
    dmsetup mknodes
    if [ -x /sbin/lvm ]; then
        vgs="$(/sbin/lvm vgscan | sed -n '/"/s/^.*"\([^'\'']*\)".*$/\1/p')"
        if [ -n "${vgs}" ]; then
          for vg in ${vgs}; do
          /sbin/lvm vgchange -a n ${vg} >/dev/null 2>&1 
         done 
        fi
    fi
    log_action_begin_msg "Stopping $INITSTATE crypto disks"

    crypttab_foreach_entry _do_stop_callback
    log_action_end_msg 0
}

#1784 Re: Devuan Derivatives » [Fixed] Upgraded "Miyo-XTRA Beowulf" boot suspend/resume delay » 2019-02-23 16:31:36

The initrd is not in gzip format. Use this line instead:

xzcat /initrd.img | cpio -d -i -m

Yes, you can just call the initrd directly (in /boot) instead of using the symlink.

Please get refractainstaller 9.5.2 from ceres. It should be in the repo by now (or very soon.)

#1785 Re: Devuan Derivatives » [Fixed] Upgraded "Miyo-XTRA Beowulf" boot suspend/resume delay » 2019-02-22 13:10:30

Go ahead and modify refractasnapshot as I indicated a couple posts above and see if it works. If you use the cli script, please add the -d option for a verbose log. If that doesn't work, you may need to do the steps listed below.

More info...

https://lists.debian.org/debian-user/20 … 00195.html

++++ BEGIN apt-listchanges: News MESSAGE ++++

initramfs-tools (0.129) unstable; urgency=medium

  * Some systems that do not support suspend-to-disk (hibernation) will
    require a configuration change to explicitly disable this.

    From version 0.128, the boot code waits for a suspend/resume device
    to appear, rather than checking just once.  If the configured or
    automatically selected resume device is not available at boot time,
    this results in a roughly 30 second delay.

    You should set the RESUME variable in
    /etc/initramfs-tools/conf.d/resume or
    /etc/initramfs-tools/initramfs.conf to one of:

    - auto - select the resume device automatically
    - none - disable use of a resume device
    - UUID=<uuid> - use a specific resume device (by UUID)
    - /dev/<name> - use a specific resume device (by kernel name)

-- Ben Hutchings <ben@decadent.org.uk>  Thu, 20 Apr 2017 23:21:32
+0100</ben@decadent.org.uk>

++++ END apt-listchanges: News MESSAGE ++++

Hmm..  My resume file contains 'RESUME=none' but there's no RESUME variable in /etc/initramfs-tools/initramfs.conf. I guess the scripts in /usr/share/initramfs-tool/ figured it out in my system. You could add RESUME=none to initramfs.conf then run update-initramfs -u -k all and then make a new snapshot. Note that this would change the host initrd. (both of them)

#1786 Re: Devuan Derivatives » [Fixed] Upgraded "Miyo-XTRA Beowulf" boot suspend/resume delay » 2019-02-22 12:38:16

As ordinary user, in your home run the following commands.

mkdir extracted
cd extracted
zcat /initrd.img | cpio -i

Then look in conf/conf.d/zz-resume-auto. If you have more than one kernel, you can replace '/initrd.img' with the real paths, '/boot/initrd.img-4.whatever' (but unpack them into different directories, like extracted and extracted2 for instance.)

My beowulf has conf/conf.d/resume. I don't know why yours is different.

#1787 Re: Devuan Derivatives » [Fixed] Upgraded "Miyo-XTRA Beowulf" boot suspend/resume delay » 2019-02-22 12:05:20

The script is set to remove conf/conf.d/resume and conf/conf.d/cryptroot. Those files don't exist. They changed the name of resume to zz-resume-auto, and not relevant to your case, they moved cryptroot from conf/conf.d/ to the root of the initrd.

OK. Edit /usr/bin/refractasnapshot. Change this:

   274          if [ -f conf/conf.d/resume ] ; then
   275                  echo "Removing resume"
   276                  rm -f conf/conf.d/resume
   277          fi

To this:

   274          if [ -f conf/conf.d/zz-resume-auto ] ; then
   275                  echo "Removing resume"
   276                  rm -f conf/conf.d/zz-resume-auto
   277          fi

The line numbers might be offset by a few. In the gui version it's around lines 321-323.

Edit: Wait. See next post when it arrives. I'd like to know what's inside that file.

#1788 Re: Hardware & System Configuration » Shutdown encrypted LVM on Beowulf » 2019-02-22 00:21:09

Something has to happen here. I'm not sure what. I tried changing line 164 to just 'for i in 1 ; do' but I don't think it really worked. Only tried it once before I reinstalled over it. I've done a bunch of installs today, and it looks like grub can't do full-disk encryption or encrypted lvm. I need to run the tests again, because I just got a new version of grub. If I can get an encrypted lvm install to boot, I'll play with this some more.

   156  do_stop() {
   157      dmsetup mknodes
   158      log_action_begin_msg "Stopping $INITSTATE crypto disks"
       
   159      crypttab_foreach_entry _do_stop_callback
   160      log_action_end_msg 0
   161  }
   162  _do_stop_callback() {
   163      local i rv=0
   164      for i in 1 2 4 8 16 32; do
   165          remove_mapping "$CRYPTTAB_NAME" 3<&- && break || rv=$?
   166          if [ $rv -eq 1 ] || [ $rv -eq 2 -a $i -gt 16 ]; then
   167              log_action_end_msg $rv
   168              break
   169          fi
   170          log_action_cont_msg "$CRYPTTAB_NAME busy..."
   171          sleep $i
   172      done
   173  }

#1789 Re: Devuan Derivatives » [Fixed] Upgraded "Miyo-XTRA Beowulf" boot suspend/resume delay » 2019-02-21 13:55:33

There's a resume file in your initrd that has that uuid inside it. In a live session, run lsinitramfs /initrd.img | grep resume to see if it's there. That uuid should correspond to a swap partition. There's a way to avoid this when making the snapshot. It's in the readme. Starting with refractasnapshot-10.2 the script will do it for you (or ask what to do.) 

If you have no swap partition, you can probably get rid of the file by running update-initramfs -u. The other way to get rid of it is to unpack the initrd, remove the file (conf/conf.d/resume) and then repack the initrd. If you need the commands for that I can post them after another cup of coffee.

#1790 Re: Hardware & System Configuration » Shutdown encrypted LVM on Beowulf » 2019-02-20 13:32:59

Looks like the file name was changed to  /lib/cryptsetup/cryptdisks-functions. (there's a dash instead of a dot)

I have it on two beowulf installs - one was upgrade from ascii, one was from mini.iso install.

I don't know if that fix still works (i.e. copying part of the jessie version into the ascii file.) You could try the earlier fix of changing the timings on line 190 to 'for i in 1'.  I haven't tested this yet, because I have't been able to boot into my encrypted lvm install.

# Removes all mappings in crypttab
181 do_stop() {
182     dmsetup mknodes
183     log_action_begin_msg "Stopping $INITSTATE crypto disks"
184
185     crypttab_foreach_entry _do_stop_callback
186     log_action_end_msg 0
187 }
188 _do_stop_callback() {
189     local i rv=0
190     for i in 1 2 4 8 16 32; do
191         remove_mapping "$CRYPTTAB_NAME" 3<&- && break || rv=$?
192         if [ $rv -eq 1 ] || [ $rv -eq 2 -a $i -gt 16 ]; then
193             log_action_end_msg $rv
194             break
195         fi
196         log_action_cont_msg "$CRYPTTAB_NAME busy..."
197         sleep $i

#1791 Re: Installation » Beowulf: Link sbin » 2019-02-18 20:16:35

I tried copying .Xauthority and that didn't work for me in beowulf. Are you using that in beowulf now?

I also tried xhost + and that didn't work, either.

#1792 Re: Devuan Derivatives » Refacta 9.0 Released » 2019-02-18 18:34:17

Oh! That typo has been there for a long time. Good thing it's just a commented example. I'll fix it in next version.

make_efi makes the files needed to boot the iso on uefi hardware. For that to work, you need to have grub-efi-amd64-bin installed (it already is, unless you removed it.)

#1793 Re: Installation » Beowulf: Link sbin » 2019-02-18 18:11:14

The problem you're running into is the change in root's path when you run su in a terminal. That path no longer contains the sbins. If you use su - instead, you'll get the root path that you're used to. But then you won't be able to start graphical apps as root from that terminal. For that, you're supposed to use pkexec. When you figure all that out, I'll read your posts. Until then, or until someone gives me good reasons not to do this, I'm working around the problem.

# grep PATH /root/.bashrc
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

Oh yeah, the other workaround is to use the full path for commands.

/sbin/blkid
/usr/sbin/update-grub

#1794 Re: Installation » [Solved] Stuck with Beowulf netinstall » 2019-02-13 22:40:29

You did both fixes and only needed to do one. With the *-signed package removed, you can just run grub-install and it will make (re-make) the devuan entry and set it be the first bootloader. (It should do that, anyway. Not all uefi systems act the same.)

#1795 Re: Installation » [Solved] Stuck with Beowulf netinstall » 2019-02-13 20:00:02

Go into rescue mode and get a shell in the installed system. Run dpkg -l | grep grub and if a package named grub-efi-amd64-signed is installed, remove it.

If that's not possible, try grub-install --bootloader-id=debian and see if that fixes it.

Note: I had the same problem with an encrypted install of beowulf, and I was able to fix it with either of the methods I described. If neither of these can help, post the contents of /etc/fstab, /etc/crypttab and /boot/grub/grub.cfg, and the output of the following comands:

fdisk -l
df -h
blkid

#1797 Re: Installation » [Solved] Stuck with Beowulf netinstall » 2019-02-13 12:42:25

Either boot from grub command line or go into chroot and remove grub-efi-amd64-signed. Then run grub-install and update-grub.

#1798 Re: Devuan Derivatives » Refacta 9.0 Released » 2019-02-12 22:19:05

Here's the distrowatch link. I should have included this in the first post. They dressed up my dry announcement a bit.
https://distrowatch.com/?newsid=10460

#1799 Re: Desktop and Multimedia » Software update notifications in XFCE » 2019-02-12 21:04:10

"not stable" means that they might change the way it works. If it stops working, you'll notice that you're not getting notified about updates, and you can change the script then.

If anyone reading the thread knows python well enough to get it to feed the list of packages to notify-send, please tell me about it. I can get them to print all on one line, but I want one package per line the way my short script does it.

#1800 Re: Desktop and Multimedia » Software update notifications in XFCE » 2019-02-12 00:23:49

Last I checked, the man page for apt says not to use it in scripts. I don't know what bad things might happen if you do.

I got rid of the cron job and set up apt to update the cache once a day.

To do that, put this line in /etc/apt/apt.conf.d/10periodic. ("1" is once a day, "2" is every other day, etc.)

APT::Periodic::Update-Package-Lists "1";

See /usr/lib/apt/apt.systemd.daily for other options you can add to that file if you want to change from the default settings. (I don't know why it has that name.)

That said, I agree that it makes sense for the script to initiate the update. (Or for a postinstall script to make the change to apt.)

@miyo:
In beowulf, /lib/live/mount has changed to /run/live/medium

Board footer

Forum Software