Compare commits
190
Commits
f53d7e663c
..
test
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
acf94c1c70 | ||
|
|
fc27be9805 | ||
|
|
08dea28243 | ||
|
|
2506714ae8 | ||
|
|
b51e5f1db5 | ||
|
|
b09786d730 | ||
|
|
89977b70a4 | ||
|
|
0a9ace0897 | ||
|
|
9c8c803090 | ||
|
|
9f9168ae6b | ||
|
|
c089338005 | ||
|
|
2865672f33 | ||
|
|
49dba6f48a | ||
|
|
129f6b2970 | ||
|
|
6706bccb92 | ||
|
|
624cfea8a5 | ||
|
|
b08b102551 | ||
|
|
26d691a7b5 | ||
|
|
c228adfa5c | ||
|
|
f6d197b89e | ||
|
|
e7c202fafd | ||
|
|
2e5bba4fef | ||
|
|
ed60d2c4fa | ||
|
|
bf751b3e79 | ||
|
|
bf0f2a8945 | ||
|
|
22320ecd08 | ||
|
|
9ea1f3754b | ||
|
|
547ef2c399 | ||
|
|
64b786598e | ||
|
|
08120c6022 | ||
|
|
3f2810e0c0 | ||
|
|
614c4815d9 | ||
|
|
124dfa2609 | ||
|
|
40009a0e2f | ||
|
|
2e5f5e5be9 | ||
|
|
72a6416048 | ||
|
|
b9739f9fc8 | ||
|
|
5964f78755 | ||
|
|
521d71aabc | ||
|
|
88a5e6779f | ||
|
|
985cdf59fc | ||
|
|
e097ca1003 | ||
|
|
82fe1cea2b | ||
|
|
14aa5291fc | ||
|
|
14d9242f49 | ||
|
|
3b7417de3e | ||
|
|
274ce549af | ||
|
|
10ce137b51 | ||
|
|
49aa016158 | ||
|
|
dac9f123aa | ||
|
|
55afef2ada | ||
|
|
026fab7bfc | ||
|
|
341ff01a46 | ||
|
|
4126eb0d23 | ||
|
|
102f3507d9 | ||
|
|
837fb851c4 | ||
|
|
6d712ebf2d | ||
|
|
8fa6bfcc71 | ||
|
|
26d8e157a2 | ||
|
|
cca57584f9 | ||
|
|
1d26b2113d | ||
|
|
c9aed3491d | ||
|
|
0e2ad7847a | ||
|
|
1eb1a912d3 | ||
|
|
94de536f04 | ||
|
|
a9fdf8d65b | ||
|
|
3d8c48c2dd | ||
|
|
9beb27fce4 | ||
|
|
5b29ab32ca | ||
|
|
89943c4092 | ||
|
|
3362506cd6 | ||
|
|
da4d00c069 | ||
|
|
8d83e8741f | ||
|
|
c530d4c897 | ||
|
|
00cb3c9ac4 | ||
|
|
bcd3cd6192 | ||
|
|
13e896fdb8 | ||
|
|
12c9b1e6ef | ||
|
|
74c23a7cd4 | ||
|
|
9a27129139 | ||
|
|
fe1fa3ca71 | ||
|
|
9b83b389ab | ||
|
|
281eebf280 | ||
|
|
aaa83b5ed0 | ||
|
|
a679eacab8 | ||
|
|
81ed906d7f | ||
|
|
856a40b3f0 | ||
|
|
181806cdd3 | ||
|
|
c266522598 | ||
|
|
86773da268 | ||
|
|
66a138da7d | ||
|
|
a76bb31df6 | ||
|
|
79bb54a0ed | ||
|
|
f1c8182874 | ||
|
|
83b39edceb | ||
|
|
35874960e8 | ||
|
|
3ce1abf59a | ||
|
|
efee43b963 | ||
|
|
ed89525714 | ||
|
|
a5e5808f70 | ||
|
|
b072c25ba8 | ||
|
|
af77235f61 | ||
|
|
f99caea570 | ||
|
|
ae4a906da2 | ||
|
|
2e799692f5 | ||
|
|
8fe7616b38 | ||
|
|
2144e4fc1c | ||
|
|
c0137c0e73 | ||
|
|
4e5b347e84 | ||
|
|
1500c65c38 | ||
|
|
f0135901c9 | ||
|
|
e655a8de82 | ||
|
|
ecf1868cd1 | ||
|
|
c483ef23f2 | ||
|
|
2fca3e6dd4 | ||
|
|
0f14bed2d3 | ||
|
|
9981f01ceb | ||
|
|
1c607bd09a | ||
|
|
cadf53b85c | ||
|
|
7f1fbd3039 | ||
|
|
5c4982b1c7 | ||
|
|
197bbbe770 | ||
|
|
7b7853ecb8 | ||
|
|
c3c45019bc | ||
|
|
9289844c99 | ||
|
|
de7b8b3acd | ||
|
|
9ec289c136 | ||
|
|
6617d2f84d | ||
|
|
2ba9cb07da | ||
|
|
fac4a088ae | ||
|
|
0b33dd6be9 | ||
|
|
a3c89343ac | ||
|
|
def54b1a4f | ||
|
|
b75109612f | ||
|
|
9e4fc3b35c | ||
|
|
f212017cb4 | ||
|
|
71c1d92ed9 | ||
|
|
4d4d715fc1 | ||
|
|
ebd0d89da9 | ||
|
|
394b8999df | ||
|
|
0fc329a922 | ||
|
|
791c10684f | ||
|
|
a3de013ecb | ||
|
|
9ceac41631 | ||
|
|
63656fb07a | ||
|
|
19281f3ee6 | ||
|
|
2a91f9e118 | ||
|
|
1579bf11e8 | ||
|
|
a0bc8b8ed1 | ||
|
|
8f6ae4707d | ||
|
|
a896b8b888 | ||
|
|
7c12d73eec | ||
|
|
19d8d7ce33 | ||
|
|
c8f3c3d62b | ||
|
|
e26290c9e8 | ||
|
|
74a71e86c4 | ||
|
|
474075ff87 | ||
|
|
74054d9634 | ||
|
|
45b20879eb | ||
|
|
74985dfc81 | ||
|
|
dcd2fc35eb | ||
|
|
422e5f71fe | ||
|
|
d95da849f8 | ||
|
|
bf368d0d25 | ||
|
|
5e45529a0d | ||
|
|
c58ae06775 | ||
|
|
386b7a00e4 | ||
|
|
563a7328f4 | ||
|
|
c0ac3d7a12 | ||
|
|
17ebeaa3f7 | ||
|
|
6863e39c9c | ||
|
|
a55e02e1e0 | ||
|
|
27ea4b4411 | ||
|
|
059249eed2 | ||
|
|
c0b5434f44 | ||
|
|
edf841a06e | ||
|
|
dc0f7796b2 | ||
|
|
9438c07e25 | ||
|
|
f08d10d009 | ||
|
|
f369fb70a7 | ||
|
|
a02cf785e5 | ||
|
|
5e83fbf3d2 | ||
|
|
8ca216cae2 | ||
|
|
43bea157fe | ||
|
|
96fa360d27 | ||
|
|
9c3bc33373 | ||
|
|
0d60a61c39 | ||
|
|
5857371570 | ||
|
|
bc0d29539d | ||
|
|
d4d0debe30 |
@@ -1,59 +0,0 @@
|
||||
#! /bin/bash
|
||||
|
||||
echo ""
|
||||
echo "Updating local packages..."
|
||||
errors=`apt-add-repository universe >/dev/null 2>/dev/null && apt-get update 2>&1 >/dev/null && apt-get install -y zfs-initramfs`
|
||||
if [ "$?" = "0" ]; then
|
||||
echo "Done."
|
||||
else
|
||||
echo "Failed to add universal repository, update apt repository - $errors"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "Importing boot pool and main OS pool..."
|
||||
errors=$(zpool export -a 2>&1 1>/dev/null && zpool import -N -R /mnt rpool 2>&1 1>/dev/null && zpool import -N -R /mnt bpool 2>&1 1>/dev/null && zfs mount rpool/ROOT/ubuntu 2>&1 1>/dev/null)
|
||||
# && zfs mount -a 2>&1 1>/dev/null
|
||||
if [ "$?" = "0" ]; then
|
||||
echo "Done."
|
||||
else
|
||||
echo "Failed to mount bpool or rpool - $errors"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
|
||||
echo ""
|
||||
echo "Binding mounts..."
|
||||
errors=`mount --rbind /dev /mnt/dev 2>&1 1>/dev/null && mount --rbind /proc /mnt/proc 2>&1 1>/dev/null && mount --rbind /sys /mnt/sys 2>&1 1>/dev/null`
|
||||
if ! [ "$?" = "0" ]; then
|
||||
echo "Failed to bind mounts - $errors"
|
||||
exit 4
|
||||
fi
|
||||
echo "Done."
|
||||
|
||||
echo ""
|
||||
echo "Entering chroot..."
|
||||
echo "Please execute \"mount /boot\" to access boot partition, type exit to leave:"
|
||||
echo ""
|
||||
|
||||
chroot /mnt /bin/bash --login < /dev/tty
|
||||
|
||||
if ! [ "$?" = "0" ]; then
|
||||
echo "Chroot failed with an error"
|
||||
exit $?
|
||||
fi
|
||||
|
||||
|
||||
|
||||
echo ""
|
||||
echo "Unbinding mounts..."
|
||||
errors=$(mount | grep -v zfs | tac | awk '/\/mnt/ {print \$3}' | xargs -i{} umount -lf {} 2>&1 1>/dev/null && zpool export -a 2>&1 1>/dev/null)
|
||||
if ! [ "$?" = "0" ]; then
|
||||
echo "Failed to unbind mounts - $errors"
|
||||
exit 4
|
||||
fi
|
||||
echo "Done."
|
||||
echo ""
|
||||
|
||||
|
||||
exit 0
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
echo ""
|
||||
echo "Updating local packages..."
|
||||
errors=`apt-add-repository universe >/dev/null 2>&1 1>/dev/null && apt update 2>&1 >/dev/null`
|
||||
errors=`apt-add-repository universe >/dev/null 2>/dev/null && apt update 2>&1 >/dev/null`
|
||||
if [ "$?" = "0" ]; then
|
||||
echo "Done."
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user