View previous topic :: View next topic |
Author |
Message |
Windmill Tux's lil' helper
Joined: 21 Feb 2014 Posts: 105
|
Posted: Wed Mar 28, 2018 10:28 am Post subject: Problems starting the system (zfs) |
|
|
Hi, I installed the system on a zpool taking the whole disk, I used grub and and built initramfs with genkernel, but now when I start the system I have this error
Code: | Booting (initramfs)
/newroot is a mountpoint
Chroot : can't execute '/usr/bin/test' : No such file or directory
>>Switching to real root: /sbin/switch_root -c /dev/console /newroor /sbin/init
INIT: version 2.88 booting
INIT: No inittab file found
Enter runlevel: |
|
|
Back to top |
|
|
Windmill Tux's lil' helper
Joined: 21 Feb 2014 Posts: 105
|
Posted: Sat Mar 31, 2018 4:05 pm Post subject: |
|
|
Any help? I've also tried generating initramfs with bliss script and I have the same problem. I have to add that, if I set a wrong root in grub.cfg, so it bring me to the shel and then I manually import the zpool, the system starts normally |
|
Back to top |
|
|
trumee Guru
Joined: 02 Mar 2003 Posts: 551 Location: London,UK
|
Posted: Sun Apr 01, 2018 3:22 am Post subject: |
|
|
Try building the initramfs using dracut like so,
Code: |
dracut --omit resume --omit-drivers="resume" --host-only "" 4.9.76-gentoo-r1
|
Change your kernel version though above. |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Sun Apr 01, 2018 12:39 pm Post subject: |
|
|
If you have access to irc, pop over to #zfsonlinux on freenode. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
Windmill Tux's lil' helper
Joined: 21 Feb 2014 Posts: 105
|
Posted: Mon Apr 02, 2018 10:12 am Post subject: |
|
|
Oh, I solved the problem, I just needed to have /etc on the same / dataset. Howewer, is there a way to mount other dataset aside from root on startup? |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Sat Apr 07, 2018 9:13 am Post subject: |
|
|
Windmill wrote: | Howewer, is there a way to mount other dataset aside from root on startup? |
sorry for the delay.
if they are zfs and on the same pool, they should be mounted on import (unless you have canmount set to no). if they're from another pool, you probably need to start the zfs-import and zfs-mount services. if you used legacy mountpoints, then they should get mounted on boot when the system reads /etc/fstab. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
Windmill Tux's lil' helper
Joined: 21 Feb 2014 Posts: 105
|
Posted: Sun Apr 15, 2018 3:33 pm Post subject: |
|
|
bunder wrote: | Windmill wrote: | Howewer, is there a way to mount other dataset aside from root on startup? |
sorry for the delay.
if they are zfs and on the same pool, they should be mounted on import (unless you have canmount set to no). if they're from another pool, you probably need to start the zfs-import and zfs-mount services. if you used legacy mountpoints, then they should get mounted on boot when the system reads /etc/fstab. |
They are on the same pool. but are not import at boot |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Mon Apr 16, 2018 7:33 am Post subject: |
|
|
I would try starting zfs-mount but afaik you shouldn't need it if its on the same pool. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
|