From 853f79956f3a1bf67aef41d27103c50225dc9bd9 Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Sat, 8 Dec 2018 02:01:16 +0000 Subject: tools qemu partitions revision --- tools/qemu.html | 78 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 39 insertions(+), 39 deletions(-) (limited to 'tools/qemu.html') diff --git a/tools/qemu.html b/tools/qemu.html index a6621a1..ede94ed 100644 --- a/tools/qemu.html +++ b/tools/qemu.html @@ -43,7 +43,7 @@ this describes how to create a qcow2 type;

-        $ qemu-img create -f qcow2 crux-img.qcow2 2000M
+        $ qemu-img create -f qcow2 crux-img.qcow2 15G
         

2.1. Mount images

@@ -63,25 +63,24 @@ to use parted to create a gpt system table;

-        parted --script ${DEV} \
-                mklabel gpt \
-                unit mib \
-                mkpart primary 2 4 \
-                set 1 bios_grub on \
-                name 1 grub \
-                mkpart ESP fat32 4 59 \
-                set 2 boot on \
-                name 2 efi \
-                mkpart primary ext4 103 200 \
-                name 3 boot \
-                mkpart primary linux-swap 200 456 \
-                name 4 swap \
-                mkpart primary ext4 456 3700 \
-                name 5 root \
-                mkpart primary ext4 3700 4000 \
-                name 6 var \
-                mkpart primary ext4 4000 100% \
-                name 7 home
+	parted --script ${DEV} \
+	     mklabel gpt \
+	     unit mib \
+	     mkpart primary 2 4 \
+	     name 1 grub \
+	     mkpart ESP fat32 4 128 \
+	     name 2 efi \
+	     mkpart primary ext4 128 1128 \
+	     name 3 boot \
+	     mkpart primary ext4 1128 12128 \
+	     name 4 root \
+	     mkpart primary ext4 12128 14128 \
+	     name 5 var \
+	     mkpart primary ext4 14128 100% \
+	     name 6 lvm \
+	     set 1 bios_grub on \
+	     set 2 boot on \
+	     set 6 lvm on
         
@@ -91,30 +90,31 @@
         

Use /dev/mapper/$(name_of_device) to assign correct blocks;

-        mkfs.fat -F 32  /dev/mapper/${DEV_NAME}p2
-        mkfs.ext4       /dev/mapper/${DEV_NAME}p3
-        mkswap          /dev/mapper/${DEV_NAME}p4
-        mkfs.ext4       /dev/mapper/${DEV_NAME}p5
-        mkfs.ext4       /dev/mapper/${DEV_NAME}p6
-        mkfs.ext4       /dev/mapper/${DEV_NAME}p7
+	mkfs.fat -F 32  /dev/mapper/${DEV_NAME}p2
+	mkfs.ext4       /dev/mapper/${DEV_NAME}p3
+	mkfs.ext4       /dev/mapper/${DEV_NAME}p4
+	mkfs.ext4       /dev/mapper/${DEV_NAME}p5
+	pvcreate        /dev/mapper/${DEV_NAME}p6
         
+

Read lvm documentation on how to setup + virtual group and logic volumes.

+

Mount partition;

-        mount /dev/mapper/${DEV_NAME}p5 $CHROOT
-        mkdir -p $CHROOT/proc
-        mkdir -p $CHROOT/sys
-        mkdir -p $CHROOT/dev
-
-        mkdir -p $CHROOT/boot
-        mount /dev/mapper/${DEV_NAME}p3 $CHROOT/boot
-        mkdir -p $CHROOT/boot/efi
-        mount /dev/mapper/${DEV_NAME}p2 $CHROOT/boot/efi
-        mkdir -p $CHROOT/var
-        mount /dev/mapper/${DEV_NAME}p6 $CHROOT/var
-        mkdir -p $CHROOT/home
-        mount /dev/mapper/${DEV_NAME}p7 $CHROOT/home
+	mount /dev/mapper/${DEV_NAME}p4 $CHROOT
+	mkdir -p $CHROOT/proc
+	mkdir -p $CHROOT/sys
+	mkdir -p $CHROOT/dev
+	mkdir -p $CHROOT/media
+
+	mkdir -p $CHROOT/boot
+	mount /dev/mapper/${DEV_NAME}p3 $CHROOT/boot
+	mkdir -p $CHROOT/boot/efi
+	mount /dev/mapper/${DEV_NAME}p2 $CHROOT/boot/efi
+	mkdir -p $CHROOT/var
+	mount /dev/mapper/${DEV_NAME}p5 $CHROOT/var
         

Before disconnecting image, clean dev mappings;

-- cgit 1.4.1-2-gfad0 From 6844eee3fbbdc834f22fd0667a41d80d66d307c0 Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Sun, 9 Dec 2018 00:03:45 +0000 Subject: tools revision --- tools/conf/srv/gitolite/gitolite.conf | 6 +++--- tools/dnsmasq.html | 2 +- tools/fail2ban.html | 2 +- tools/gitolite.html | 2 +- tools/gnupg.html | 2 +- tools/index.html | 2 +- tools/logrotate.html | 2 +- tools/lvm.html | 2 +- tools/lynx.html | 2 +- tools/mutt.html | 2 +- tools/network.html | 2 +- tools/nginx.html | 2 +- tools/openssh.html | 2 +- tools/postgresql.html | 2 +- tools/qemu.html | 2 +- tools/squid.html | 2 +- tools/storage.html | 2 +- tools/syslog-ng.html | 2 +- tools/tar.html | 2 +- tools/vim.html | 2 +- tools/x.html | 2 +- 21 files changed, 23 insertions(+), 23 deletions(-) (limited to 'tools/qemu.html') diff --git a/tools/conf/srv/gitolite/gitolite.conf b/tools/conf/srv/gitolite/gitolite.conf index 09133ec..e7573dd 100644 --- a/tools/conf/srv/gitolite/gitolite.conf +++ b/tools/conf/srv/gitolite/gitolite.conf @@ -33,11 +33,11 @@ repo gitolite-admin RW+ = gitolite repo c9-doc c9-ports c9-pmwiki c9-assistant - config gitweb.owner = "c9 team" + config gitweb.owner = "Hive Team" config gitweb.category = "c9" repo linux-pck - config gitweb.owner = "c9 team" + config gitweb.owner = "Hive Team" config gitweb.category = "mirrors" repo opt core contrib @@ -56,7 +56,7 @@ repo c9-pmwiki option hook.post-receive = deploy-web-doc repo c9-assistant - config gitweb.owner = "c9 team" + config gitweb.owner = "Hive Team" config gitweb.description = "c9 open assistant" repo core diff --git a/tools/dnsmasq.html b/tools/dnsmasq.html index a3b3ea8..32480d6 100644 --- a/tools/dnsmasq.html +++ b/tools/dnsmasq.html @@ -70,7 +70,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/fail2ban.html b/tools/fail2ban.html index 46c909c..62f8c45 100644 --- a/tools/fail2ban.html +++ b/tools/fail2ban.html @@ -48,7 +48,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/gitolite.html b/tools/gitolite.html index cfb443b..a7a48a5 100644 --- a/tools/gitolite.html +++ b/tools/gitolite.html @@ -827,7 +827,7 @@ Tools Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/gnupg.html b/tools/gnupg.html index b009725..54b74d3 100644 --- a/tools/gnupg.html +++ b/tools/gnupg.html @@ -297,7 +297,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/index.html b/tools/index.html index 6c608e4..e2eef45 100644 --- a/tools/index.html +++ b/tools/index.html @@ -170,7 +170,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/logrotate.html b/tools/logrotate.html index 2228c62..b120741 100644 --- a/tools/logrotate.html +++ b/tools/logrotate.html @@ -157,7 +157,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 -c9 team. +Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/lvm.html b/tools/lvm.html index 347e502..497ce01 100644 --- a/tools/lvm.html +++ b/tools/lvm.html @@ -160,7 +160,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/lynx.html b/tools/lynx.html index 618e482..039d2fa 100644 --- a/tools/lynx.html +++ b/tools/lynx.html @@ -9,7 +9,7 @@
         # Description: Text-based web browser.
         # URL: http://lynx.isc.org/
-        # Packager: c9 team, silvino at bk dot ru
+        # Packager: Hive Team, silvino at bk dot ru
         # Depends on: ncurses openssl zlib
 
         name=lynx
diff --git a/tools/mutt.html b/tools/mutt.html
index 5597600..28c9e0c 100644
--- a/tools/mutt.html
+++ b/tools/mutt.html
@@ -313,7 +313,7 @@
         

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/network.html b/tools/network.html index ba78bac..9e6821e 100644 --- a/tools/network.html +++ b/tools/network.html @@ -68,7 +68,7 @@ Tools Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/nginx.html b/tools/nginx.html index 9c735ea..7094ac7 100644 --- a/tools/nginx.html +++ b/tools/nginx.html @@ -394,7 +394,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/openssh.html b/tools/openssh.html index f257f9c..e1748d7 100644 --- a/tools/openssh.html +++ b/tools/openssh.html @@ -303,7 +303,7 @@ Tools Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/postgresql.html b/tools/postgresql.html index c5b309c..b68323a 100644 --- a/tools/postgresql.html +++ b/tools/postgresql.html @@ -318,7 +318,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/qemu.html b/tools/qemu.html index ede94ed..5c44bad 100644 --- a/tools/qemu.html +++ b/tools/qemu.html @@ -403,7 +403,7 @@ Tools Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/squid.html b/tools/squid.html index cdf28cb..e8f1b0f 100644 --- a/tools/squid.html +++ b/tools/squid.html @@ -67,7 +67,7 @@ ssl_bump bump all Tools Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/storage.html b/tools/storage.html index f745cc7..932e724 100644 --- a/tools/storage.html +++ b/tools/storage.html @@ -93,7 +93,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/syslog-ng.html b/tools/syslog-ng.html index a799a16..50eaebc 100644 --- a/tools/syslog-ng.html +++ b/tools/syslog-ng.html @@ -146,7 +146,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 -c9 team. +Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/tar.html b/tools/tar.html index 19708be..1b2c88a 100644 --- a/tools/tar.html +++ b/tools/tar.html @@ -124,7 +124,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/vim.html b/tools/vim.html index 15c526f..6b9ec31 100644 --- a/tools/vim.html +++ b/tools/vim.html @@ -175,7 +175,7 @@ Systools Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/x.html b/tools/x.html index ac4104b..79d1757 100644 --- a/tools/x.html +++ b/tools/x.html @@ -253,7 +253,7 @@

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

-- cgit 1.4.1-2-gfad0