modify the fstab
This commit is contained in:
parent
838a7171ba
commit
7452236f2b
1 changed files with 9 additions and 0 deletions
|
@ -60,6 +60,15 @@ run_root chmod 0700 /root/.ssh
|
||||||
# Import local resolv.conf.
|
# Import local resolv.conf.
|
||||||
sudo cp "$RESOLVCONF" $rootfs_tmpdir/etc/resolv.conf
|
sudo cp "$RESOLVCONF" $rootfs_tmpdir/etc/resolv.conf
|
||||||
|
|
||||||
|
# Generate fstab which is later included in the initramfs
|
||||||
|
|
||||||
|
# Add filesystem to fstab, because busybox mount does not work
|
||||||
|
# without -t ext4 for mounting and returns "No such file or directory"
|
||||||
|
# nb2:~# blkid| grep ^${DISK}1 | awk '{ print $2 }'
|
||||||
|
# UUID="fecf4182-f6dd-4d2c-9af7-8f36444ee25c"
|
||||||
|
eval $(blkid | grep ^${DISK}1 | awk '{ print $2 }')
|
||||||
|
echo "UUID=$UUID / ext4 0 1" >> ${rootfs_tmpdir}/etc/fstab
|
||||||
|
|
||||||
run_root apk update
|
run_root apk update
|
||||||
run_root apk add linux-lts openrc udev openssh
|
run_root apk add linux-lts openrc udev openssh
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue