Merge ~therealchjones/casper:supported-fs into casper:main

Proposed by Christian Jones
Status: Merged
Merged at revision: 7209cf9c40f98641ec4c41ff0cf8fdffbe97799a
Proposed branch: ~therealchjones/casper:supported-fs
Merge into: casper:main
Diff against target: 31 lines (+1/-12)
1 file modified
scripts/casper-helpers (+1/-12)
Reviewer Review Type Date Requested Status
Michael Hudson-Doyle Approve
Review via email: mp+429964@code.launchpad.net

Commit message

removes redundant is_supported_fs, adds udf

Description of the change

Commit 28b7525e3bb3ac0ab5dfefa045e2d10dbd01bfbd added is_supported_fs, overriding previously defined is_supported_fs and removing udf (which works) from the list of supported filesystems. This removes the now-unused earlier definition of is_supported_fs and adds udf back into the supported filesystem list, allowing installation/live boot again from UDF filesystem.

To post a comment you must log in.
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Oops. It looks like your patch removes jfs and reiserfs from the set of supported filesystems, does it make sense to merge the lists from the two implementations instead?

Revision history for this message
Christian Jones (therealchjones) wrote :

Yes, I think that’s what I’ve done. The only fs in the function at line 35 that’s not in the function at line 361 is udf. I added that to the list in the function at line 361, then removed the whole function at 35. (As it’s defined first, that’s the one that hasn’t been running, of course.) unless I’ve made some very silly mistake in the merge request (which is always possible), the result should be a minimally modified version of the function that’s otherwise been working properly and removal of the function that’s been overridden since the previous commit. Did I screw it up somehow?

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

oh sorry read too quickly, I'll merge this.

review: Approve
Revision history for this message
Christian Jones (therealchjones) wrote :

Oh, thank goodness! I was afraid I’d messed up my first contrib on lp. Thanks again!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/scripts/casper-helpers b/scripts/casper-helpers
2index 0c9ee5b..584dac2 100644
3--- a/scripts/casper-helpers
4+++ b/scripts/casper-helpers
5@@ -32,17 +32,6 @@ subdevices() {
6 echo ${r}
7 }
8
9-is_supported_fs () {
10- # FIXME: do something better like the scan of supported filesystems
11- fstype="${1}"
12- case ${fstype} in
13- vfat|iso9660|udf|ext2|ext3|ext4|btrfs|ntfs)
14- return 0
15- ;;
16- esac
17- return 1
18-}
19-
20 get_fstype() {
21 local FSTYPE
22 local FSSIZE
23@@ -361,7 +350,7 @@ find_files()
24 is_supported_fs(){
25 [ -z "${1}" ] && return 1
26 case ${1} in
27- ext2|ext3|ext4|xfs|jfs|reiserfs|vfat|ntfs|iso9660|btrfs)
28+ ext2|ext3|ext4|xfs|jfs|reiserfs|vfat|ntfs|iso9660|btrfs|udf)
29 return 0
30 ;;
31 esac

Subscribers

People subscribed via source and target branches