initial import, works.
commit
4c1151dd2f
|
@ -0,0 +1 @@
|
||||||
|
lib/modules/
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,2 @@
|
||||||
|
# for i in bin/*; do ldd $i; done| awk '/=>/ { print $3 }' | sort -u | while read fpath; do realname=$(readlink -f $fpath); cp $realname lib/; basereal=$(basename $realname); basefake=$(basename $fpath); ln -s $basereal lib/$basefake; done
|
||||||
|
:
|
|
@ -0,0 +1,57 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
export PATH="/bin"
|
||||||
|
|
||||||
|
# mounts
|
||||||
|
mount -t proc proc /proc
|
||||||
|
mount -t devtmpfs devtmp /dev
|
||||||
|
mount -t sysfs sys /sys
|
||||||
|
mount -o size=1G -t tmpfs tmpfs /tmp
|
||||||
|
|
||||||
|
# modules
|
||||||
|
for mod in mbcache fscrypto jbd2 ext4; do
|
||||||
|
modprobe "${mod}"
|
||||||
|
done
|
||||||
|
|
||||||
|
for mod in spl znvpair zcommon zunicode zavl icp zfs; do
|
||||||
|
modprobe "${mod}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# populating useful additional /dev entries
|
||||||
|
mkdir -p /dev/disk/by-uuid
|
||||||
|
blkid | tr -d : | while read dev uuidvar rest; do
|
||||||
|
eval "${uuidvar}"
|
||||||
|
ln -s "${dev}" "/dev/disk/by-uuid/${UUID}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# argument parsing
|
||||||
|
for var in $(cat /proc/cmdline | sed 's/[.]/_/g'); do
|
||||||
|
eval $var
|
||||||
|
done
|
||||||
|
eval "${root}"
|
||||||
|
pool=${ZFS/\/*}
|
||||||
|
|
||||||
|
if [ "${zfs_force}" = y ]; then
|
||||||
|
FORCE_FLAG=" -f"
|
||||||
|
else
|
||||||
|
FORCE_FLAG=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
# meat
|
||||||
|
cryptsetup open UUID="${rd_luks_uuid}" "${pool}"
|
||||||
|
zpool import -N ${FORCE_FLAG} "${pool}"
|
||||||
|
mount -t zfs -o zfsutil "${ZFS}" /src
|
||||||
|
|
||||||
|
cp "$(readlink -f /src/boot/vmlinuz)" /tmp/vmlinuz
|
||||||
|
cp "$(readlink -f /src/boot/initrd)" /tmp/initrd
|
||||||
|
|
||||||
|
umount /src
|
||||||
|
# prevent zpool import moaning
|
||||||
|
zpool export "${pool}"
|
||||||
|
cryptsetup close "${pool}"
|
||||||
|
|
||||||
|
kexec --reuse-cmdline -f --initrd /tmp/initrd /tmp/vmlinuz
|
||||||
|
|
||||||
|
exec sh
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
ld-2.24.so
|
|
@ -0,0 +1 @@
|
||||||
|
libblkid.so.1.1.0
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
libc-2.24.so
|
|
@ -0,0 +1 @@
|
||||||
|
libcap.so.2.25
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
libcryptsetup.so.4.7.0
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
libdl-2.24.so
|
|
@ -0,0 +1 @@
|
||||||
|
libgcrypt.so.20.1.8
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
libgpg-error.so.0.22.0
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
liblzma.so.5.2.3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
libm-2.24.so
|
|
@ -0,0 +1 @@
|
||||||
|
libnvpair.so.1.0.1
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
libpopt.so.0.0.0
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
libpthread-2.24.so
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
librt-2.24.so
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
libuuid.so.1.3.0
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
libuutil.so.1.0.1
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
libz.so.1.2.11
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
libzfs.so.2.0.0
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
libzfs_core.so.1.0.0
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
libzpool.so.2.0.0
|
Binary file not shown.
Loading…
Reference in New Issue