LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Problem creating initrd for tuxonice (https://www.linuxquestions.org/questions/linux-kernel-70/problem-creating-initrd-for-tuxonice-825736/)

baltazar3 08-12-2010 03:47 AM

Problem creating initrd for tuxonice
 
Hi

Im trying to get tuxonice to work with ubuntu 10.04. I patched and compiled the kernel, making sure to check tuxonice in the menuconfig. According to the tuxonice homepage, if you want to use a initrd file, you have to add the following line to initrd generation routines, before initrd mounts the filesystem:
Code:

echo 1 > /sys/power/tuxonice/do_resume
So i added the file /etc/initramfs-tools/scripts/init-premount/tuxonice
containing:
Code:

#!/bin/bash
echo 1 > /sys/power/tuxonice/do_resume

I then try to create initrd and this happens
Code:

sudo mkinitramfs -d /etc/initramfs-tools/ -o initrd.img-2.6.32.15+drm33.5 version 2.6.32.15+drm33.5
This kernel does not seem to support TuxOnIce user interface, skipping...
/tmp/mkinitramfs_FSPuyS/scripts/init-premount/tuxonice: line 2: /sys/power/tuxonice/do_resume: No such file or directory

What im i doing wrong?


All times are GMT -5. The time now is 09:13 AM.