-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some changes for Debian Bullseye #126
Conversation
Thanks. I will look at this at some point soon, but not immediately. Now that OpenZFS 2.0 has landed in buster-backports, I need to review and update the Buster version. The bullseye one will probably be very similar, so I can review those together. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i just did an install, but haven't rebooted yet... https://anarc.at/hardware/tubman/ i'll report back if there's anything else that needs changing.
ah and, by the way, the buster procedure mostly works in bullseye, actually. the above changes are minor and maybe it would be worth merging the two. in any case, i can say this procedure worked for me and the machine rebooted fine (although without networking because i screwed up the interface(5) configuration): https://anarc.at/hardware/tubman/ (it should be noted that |
You can check ethernet device name with |
On 2021-04-29 13:08:57, gratuxri wrote:
You can check ethernet device name with `udevadm test
/sys/class/net/eth0/`.
Well the thing with that is that it works only in relation with the
Linux kernel environment you're currently booted in. If your live image,
for example, disables the systemd naming thing (`net.ifnames=0`) and you
*don't* pass that kernel commandline into the install, then you'll end
up with a different interface anme.
After some updates I noticed that grub cannot recognize correct
encrypted root path in /boot/grub/grub.cfg: root=ZFS=/ROOT/debian
Not sure what that refers to.
P.S.: You can make fai hook for ZFS partitioning ;)
Yeah, I noticed that! It's too bad that it's not part of setup-storage
though... I liked that I can just use that tool as a standalone to do
most of the install work. ;)
But yeah, maybe I finally need to get into FAI proper already...
a.
…--
What this country needs is more unemployed politicians.
- Angela Davis
|
it would also be nice to have remote unlock instructions (#46 ) |
I'd like to install bullseye on root zfs. Is this patch a good start or is it out of date ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just successfully tested the whole procedure for UEFI and ZFS encrypted.
It works like a charm, thanks a bunch!
03bd1a4 seems to add an entirely new file, which makes this PR really hard to review. |
aren't all debian release instructions in separate files ? |
well right now we have those files in this pull request:
This seems like a duplicate. Am I missing something? |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for removing the dupe and the cleanup! :)
fwiw, i used a previous version of this guide for an install, and it worked mostly well, back when bullseye was testing, to answer your question more directly. so i guess this is all ready to go now... |
BTW, how safe is upgrading from buster ? |
Just worked for me following official upgrade guide https://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.html |
No issues whatsoever with your rpool and bpool ? |
From Buster Installation with 2.0.3-9~bpo10+1 to Bullseye with 2.0.3-9 I didn't have any problems. I didn't tested it with on old (stretch) Installations. |
Hi, thanks for the work |
I just take a rapid look, these commits were made before |
Please make a PR to branch bullseye or just say here, what do you want to change, maybe it's usable right now to enable some update repos in sources.list |
Sorry for long delay, we'll try to get back to ubuntu/debian howto this month (they reused same parts), and work this out. |
Hi https://openzfs.github.io/openzfs-docs/Getting%20Started/index.html still doesn't list bullseye. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diffed with Buster howto, just some nits and we're good to go.
~~~~~~~~~~~~~~~~~~~ | ||
|
||
- `64-bit Debian GNU/Linux Bullseye Live CD w/ GUI (e.g. gnome iso) | ||
<https://cdimage.debian.org/mirror/cdimage/unofficial/non-free/cd-including-firmware/current-live/amd64/iso-hybrid/debian-live-11.0.0-amd64-standard+nonfree.iso>`__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't exist now, let's use previous variant
<https://cdimage.debian.org/mirror/cdimage/unofficial/non-free/cd-including-firmware/current-live/amd64/iso-hybrid/debian-live-11.0.0-amd64-standard+nonfree.iso>`__ | |
<https://cdimage.debian.org/mirror/cdimage/release/current-live/amd64/iso-hybrid/>`__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one problem with current-live
is it will silently turn into bookworm
when that (Debian 12) is released... I'm not sure there's a good way around that, because the version-specific link:
https://cdimage.debian.org/mirror/cdimage/release/11.1.0-live/amd64/iso-hybrid/
... includes the minor version number, which will change more frequently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, but we didn't have a problem with current-live
in previous versions, so I propose to leave it.
`#zfsonlinux <irc://irc.freenode.net/#zfsonlinux>`__ on `freenode | ||
<https://freenode.net/>`__. If you have a bug report or feature request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`#zfsonlinux <irc://irc.freenode.net/#zfsonlinux>`__ on `freenode | |
<https://freenode.net/>`__. If you have a bug report or feature request | |
`#zfsonlinux <ircs://irc.libera.chat/#zfsonlinux>`__ on `Libera Chat | |
<https://libera.chat/>`__. If you have a bug report or feature request |
Replace ``username`` with your desired username:: | ||
|
||
zfs create rpool/home/username | ||
adduser username | ||
|
||
cp -a /etc/skel/. /home/username | ||
chown -R username:username /home/username | ||
usermod -a -G audio,cdrom,dip,floppy,netdev,plugdev,sudo,video username |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose to leave a variant from Buster with username in variable to minimize client's changes
Replace ``username`` with your desired username:: | |
zfs create rpool/home/username | |
adduser username | |
cp -a /etc/skel/. /home/username | |
chown -R username:username /home/username | |
usermod -a -G audio,cdrom,dip,floppy,netdev,plugdev,sudo,video username | |
Replace ``YOUR_USERNAME`` with your desired username:: | |
username=YOUR_USERNAME | |
zfs create rpool/home/$username | |
adduser $username | |
cp -a /etc/skel/. /home/$username | |
chown -R $username:$username /home/$username | |
usermod -a -G audio,cdrom,dip,floppy,netdev,plugdev,sudo,video $username |
|
||
If you installed SSH earlier, revert the temporary change:: | ||
|
||
vi /etc/ssh/sshd_config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remain sudo as in other parts of this section
vi /etc/ssh/sshd_config | |
sudo vi /etc/ssh/sshd_config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't do this anywhere else in the tutorial though, so that's a bit strange.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be a copy-paste from Ubuntu how-tos. Another way is to remove sudo
entirely from this section, I'm ok with both ways for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think i would favor that... but let's not make perfection the enemy of good here. :)
vi /etc/ssh/sshd_config | ||
# Remove: PermitRootLogin yes | ||
|
||
systemctl restart ssh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
systemctl restart ssh | |
sudo systemctl restart ssh |
Thanks for working on this ! |
Merged as b81a471 with my suggestions. Thank you everybody for participation, sorry for long delay! |
No description provided.