From e536ce98a0573ed3ed67887a86bbb4db495a88a9 Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Sat, 12 Dec 2020 03:42:26 -0600 Subject: [PATCH] Ubuntu: Drop dd ... of=/dev/stdout This does not make any sense to me. dd outputs to stdout by default. --- .../Ubuntu/Ubuntu 20.04 Root on ZFS for Raspberry Pi.rst | 4 ++-- docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS for Raspberry Pi.rst b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS for Raspberry Pi.rst index e31322e..1b31862 100644 --- a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS for Raspberry Pi.rst +++ b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS for Raspberry Pi.rst @@ -355,7 +355,7 @@ Step 3: System Installation #. Create a filesystem dataset for the root filesystem:: - UUID=$(dd if=/dev/urandom of=/dev/stdout bs=1 count=100 2>/dev/null | + UUID=$(dd if=/dev/urandom bs=1 count=100 2>/dev/null | tr -dc 'a-z0-9' | cut -c-6) zfs create -o canmount=noauto -o mountpoint=/ \ @@ -594,7 +594,7 @@ Step 5: First Boot Replace ``username`` with your desired username:: - UUID=$(dd if=/dev/urandom of=/dev/stdout bs=1 count=100 2>/dev/null | + UUID=$(dd if=/dev/urandom bs=1 count=100 2>/dev/null | tr -dc 'a-z0-9' | cut -c-6) ROOT_DS=$(zfs list -o name | awk '/ROOT\/ubuntu_/{print $1;exit}') zfs create -o com.ubuntu.zsys:bootfs-datasets=$ROOT_DS \ diff --git a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst index 28699e0..6626844 100644 --- a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst +++ b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst @@ -572,7 +572,7 @@ Step 3: System Installation #. Create filesystem datasets for the root and boot filesystems:: - UUID=$(dd if=/dev/urandom of=/dev/stdout bs=1 count=100 2>/dev/null | + UUID=$(dd if=/dev/urandom bs=1 count=100 2>/dev/null | tr -dc 'a-z0-9' | cut -c-6) zfs create -o mountpoint=/ \ @@ -1027,7 +1027,7 @@ Step 6: First Boot Replace ``username`` with your desired username:: - UUID=$(dd if=/dev/urandom of=/dev/stdout bs=1 count=100 2>/dev/null | + UUID=$(dd if=/dev/urandom bs=1 count=100 2>/dev/null | tr -dc 'a-z0-9' | cut -c-6) ROOT_DS=$(zfs list -o name | awk '/ROOT\/ubuntu_/{print $1;exit}') zfs create -o com.ubuntu.zsys:bootfs-datasets=$ROOT_DS \