Bug#1060368: partman-auto: add basic support for loongarch64
Source: partman-auto
Version: 163
Severity: wishlist
Tags: patch
User: debian-loongarch@lists.debian.org
Usertags: loong64
Dear maintainers,
Support automatic partition adaptation partman-auto for debian-installer.
Please consider the patch (my local patch) I have attached.
If the content of my local patch does not meet the specifications,
please contact me.
According to the maintainer's suggestions, it may be necessary to
continue updating or modifying this patch.
I integrated partman-auto_163+loong64_loong64.udeb in my local DVD iso.
When installing the system through debian-installer, supports automatic
partitioning function by default.
If you have any questions, you can contact me at any time.
thanks,
Dandan Zhang
diff -Nru partman-auto-163/debian/changelog partman-auto-163+loong64/debian/changelog
--- partman-auto-163/debian/changelog 2023-09-24 09:38:45.000000000 +0000
+++ partman-auto-163+loong64/debian/changelog 2023-12-14 06:44:04.000000000 +0000
@@ -1,3 +1,9 @@
+partman-auto (163+loong64) unstable; urgency=medium
+
+ * add version
+ * add basic loongarch64 support (local patch).
+ * If the content of this patch does not meet the specifications,
+ * please contact me.
+
+ -- Dandan Zhang <zhangdandan@loongson.cn> Thu, 14 Dec 2023 14:44:04 +0800
+
partman-auto (163) unstable; urgency=medium
* Team upload
diff -Nru partman-auto-163/recipes-loong64/_numbers partman-auto-163+loong64/recipes-loong64/_numbers
--- partman-auto-163/recipes-loong64/_numbers 1970-01-01 00:00:00.000000000 +0000
+++ partman-auto-163+loong64/recipes-loong64/_numbers 2023-11-13 09:08:20.000000000 +0000
@@ -0,0 +1,3 @@
+30 atomic
+50 home
+80 multi
diff -Nru partman-auto-163/recipes-loong64/atomic partman-auto-163+loong64/recipes-loong64/atomic
--- partman-auto-163/recipes-loong64/atomic 1970-01-01 00:00:00.000000000 +0000
+++ partman-auto-163+loong64/recipes-loong64/atomic 2023-11-20 07:19:21.000000000 +0000
@@ -0,0 +1,33 @@
+partman-auto/text/atomic_scheme ::
+
+300 512 300 ext2
+ $iflabel{ gpt }
+ $primary{ }
+ $bootable{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ filesystem{ ext2 }
+ mountpoint{ /boot } .
+
+300 512 300 fat32
+ $lvmok{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ filesystem{ fat32 }
+ mountpoint{ /boot/efi } .
+
+800 10000 -1 $default_filesystem
+ $lvmok{ }
+ $primary{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ $default_filesystem{ }
+ mountpoint{ / } .
+
+100% 512 300% linux-swap
+ $lvmok{ }
+ method{ swap }
+ format{ } .
diff -Nru partman-auto-163/recipes-loong64/home partman-auto-163+loong64/recipes-loong64/home
--- partman-auto-163/recipes-loong64/home 1970-01-01 00:00:00.000000000 +0000
+++ partman-auto-163+loong64/recipes-loong64/home 2023-11-20 07:30:06.000000000 +0000
@@ -0,0 +1,42 @@
+partman-auto/text/home_scheme ::
+
+300 512 300 ext2
+ $iflabel{ gpt }
+ $primary{ }
+ $bootable{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ filesystem{ ext2 }
+ mountpoint{ /boot } .
+
+300 512 300 fat32
+ $lvmok{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ filesystem{ fat32 }
+ mountpoint{ /boot/efi } .
+
+1500 6000 20000 $default_filesystem
+ $lvmok{ }
+ $primary{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ $default_filesystem{ }
+ mountpoint{ / } .
+
+100% 512 300% linux-swap
+ $lvmok{ }
+ method{ swap }
+ format{ } .
+
+1000 10000 -1 $default_filesystem
+ $lvmok{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ $default_filesystem{ }
+ mountpoint{ /home } .
+
diff -Nru partman-auto-163/recipes-loong64/multi partman-auto-163+loong64/recipes-loong64/multi
--- partman-auto-163/recipes-loong64/multi 1970-01-01 00:00:00.000000000 +0000
+++ partman-auto-163+loong64/recipes-loong64/multi 2023-11-20 07:30:20.000000000 +0000
@@ -0,0 +1,58 @@
+partman-auto/text/multi_scheme ::
+
+300 512 300 ext2
+ $iflabel{ gpt }
+ $primary{ }
+ $bootable{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ filesystem{ ext2 }
+ mountpoint{ /boot } .
+
+300 512 300 fat32
+ $lvmok{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ filesystem{ fat32 }
+ mountpoint{ /boot/efi } .
+
+2000 3500 25000 $default_filesystem
+ $lvmok{ }
+ $primary{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ $default_filesystem{ }
+ mountpoint{ / } .
+
+1000 1500 10000 $default_filesystem
+ $lvmok{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ $default_filesystem{ }
+ mountpoint{ /var } .
+
+100% 512 300% linux-swap
+ $lvmok{ }
+ method{ swap }
+ format{ } .
+
+256 400 2000 $default_filesystem
+ $lvmok{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ $default_filesystem{ }
+ mountpoint{ /tmp } .
+
+4000 10000 -1 $default_filesystem
+ $lvmok{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ $default_filesystem{ }
+ mountpoint{ /home } .
+
diff -Nru partman-auto-163/recipes-loong64-efi/_numbers partman-auto-163+loong64/recipes-loong64-efi/_numbers
--- partman-auto-163/recipes-loong64-efi/_numbers 1970-01-01 00:00:00.000000000 +0000
+++ partman-auto-163+loong64/recipes-loong64-efi/_numbers 2023-11-13 09:08:20.000000000 +0000
@@ -0,0 +1,3 @@
+30 atomic
+50 home
+80 multi
diff -Nru partman-auto-163/recipes-loong64-efi/atomic partman-auto-163+loong64/recipes-loong64-efi/atomic
--- partman-auto-163/recipes-loong64-efi/atomic 1970-01-01 00:00:00.000000000 +0000
+++ partman-auto-163+loong64/recipes-loong64-efi/atomic 2023-11-20 07:19:21.000000000 +0000
@@ -0,0 +1,33 @@
+partman-auto/text/atomic_scheme ::
+
+300 512 300 ext2
+ $iflabel{ gpt }
+ $primary{ }
+ $bootable{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ filesystem{ ext2 }
+ mountpoint{ /boot } .
+
+300 512 300 fat32
+ $lvmok{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ filesystem{ fat32 }
+ mountpoint{ /boot/efi } .
+
+800 10000 -1 $default_filesystem
+ $lvmok{ }
+ $primary{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ $default_filesystem{ }
+ mountpoint{ / } .
+
+100% 512 300% linux-swap
+ $lvmok{ }
+ method{ swap }
+ format{ } .
diff -Nru partman-auto-163/recipes-loong64-efi/home partman-auto-163+loong64/recipes-loong64-efi/home
--- partman-auto-163/recipes-loong64-efi/home 1970-01-01 00:00:00.000000000 +0000
+++ partman-auto-163+loong64/recipes-loong64-efi/home 2023-11-20 07:30:06.000000000 +0000
@@ -0,0 +1,42 @@
+partman-auto/text/home_scheme ::
+
+300 512 300 ext2
+ $iflabel{ gpt }
+ $primary{ }
+ $bootable{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ filesystem{ ext2 }
+ mountpoint{ /boot } .
+
+300 512 300 fat32
+ $lvmok{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ filesystem{ fat32 }
+ mountpoint{ /boot/efi } .
+
+1500 6000 20000 $default_filesystem
+ $lvmok{ }
+ $primary{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ $default_filesystem{ }
+ mountpoint{ / } .
+
+100% 512 300% linux-swap
+ $lvmok{ }
+ method{ swap }
+ format{ } .
+
+1000 10000 -1 $default_filesystem
+ $lvmok{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ $default_filesystem{ }
+ mountpoint{ /home } .
+
diff -Nru partman-auto-163/recipes-loong64-efi/multi partman-auto-163+loong64/recipes-loong64-efi/multi
--- partman-auto-163/recipes-loong64-efi/multi 1970-01-01 00:00:00.000000000 +0000
+++ partman-auto-163+loong64/recipes-loong64-efi/multi 2023-11-20 07:30:20.000000000 +0000
@@ -0,0 +1,58 @@
+partman-auto/text/multi_scheme ::
+
+300 512 300 ext2
+ $iflabel{ gpt }
+ $primary{ }
+ $bootable{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ filesystem{ ext2 }
+ mountpoint{ /boot } .
+
+300 512 300 fat32
+ $lvmok{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ filesystem{ fat32 }
+ mountpoint{ /boot/efi } .
+
+2000 3500 25000 $default_filesystem
+ $lvmok{ }
+ $primary{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ $default_filesystem{ }
+ mountpoint{ / } .
+
+1000 1500 10000 $default_filesystem
+ $lvmok{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ $default_filesystem{ }
+ mountpoint{ /var } .
+
+100% 512 300% linux-swap
+ $lvmok{ }
+ method{ swap }
+ format{ } .
+
+256 400 2000 $default_filesystem
+ $lvmok{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ $default_filesystem{ }
+ mountpoint{ /tmp } .
+
+4000 10000 -1 $default_filesystem
+ $lvmok{ }
+ method{ format }
+ format{ }
+ use_filesystem{ }
+ $default_filesystem{ }
+ mountpoint{ /home } .
+
Reply to: